0s autopkgtest [17:25:03]: starting date and time: 2025-10-18 17:25:03+0000 0s autopkgtest [17:25:03]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [17:25:03]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.5przk479/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-arm64-4.secgroup --name adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 82s autopkgtest [17:26:25]: testbed dpkg architecture: arm64 83s autopkgtest [17:26:26]: testbed apt version: 3.1.6ubuntu2 83s autopkgtest [17:26:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 83s autopkgtest [17:26:26]: testbed release detected to be: None 84s autopkgtest [17:26:27]: updating testbed package index (apt update) 85s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 85s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 85s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 85s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 85s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 85s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 85s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 85s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 85s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 85s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 85s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 85s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 86s Fetched 831 kB in 1s (913 kB/s) 87s Reading package lists... 88s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 88s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 88s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 88s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 90s Reading package lists... 90s Reading package lists... 90s Building dependency tree... 90s Reading state information... 91s Calculating upgrade... 91s The following packages will be upgraded: 91s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 91s libpython3-stdlib lto-disabled-list python3 python3-minimal 92s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 92s Need to get 2671 kB of archives. 92s After this operation, 66.6 kB of additional disk space will be used. 92s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 92s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 92s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 92s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 92s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 92s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 92s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 92s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 92s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 93s dpkg-preconfigure: unable to re-open stdin: No such file or directory 93s Fetched 2671 kB in 1s (2658 kB/s) 94s (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 ... 83359 files and directories currently installed.) 94s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 94s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 94s Setting up python3-minimal (3.13.7-2) ... 94s (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 ... 83359 files and directories currently installed.) 94s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 95s running python pre-rtupdate hooks for python3.13... 95s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 95s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 95s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 95s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 95s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 95s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 95s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 96s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 96s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 96s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 96s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 96s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 96s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 96s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 96s Unpacking lto-disabled-list (71) over (69) ... 96s Setting up lto-disabled-list (71) ... 96s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 96s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 97s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 97s Setting up apt (3.1.8ubuntu1) ... 98s Setting up python3 (3.13.7-2) ... 98s running python rtupdate hooks for python3.13... 98s running python post-rtupdate hooks for python3.13... 98s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 98s Setting up flash-kernel (3.109ubuntu7) ... 99s flash-kernel: deferring update (trigger activated) 99s Processing triggers for libc-bin (2.42-0ubuntu3) ... 99s Processing triggers for man-db (2.13.1-1) ... 103s Processing triggers for initramfs-tools (0.150ubuntu3) ... 103s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 140s System running in EFI mode, skipping. 140s Processing triggers for flash-kernel (3.109ubuntu7) ... 140s System running in EFI mode, skipping. 141s autopkgtest [17:27:24]: upgrading testbed (apt dist-upgrade and autopurge) 142s Reading package lists... 143s Building dependency tree... 143s Reading state information... 143s Calculating upgrade... 144s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 144s Reading package lists... 145s Building dependency tree... 145s Reading state information... 145s Solving dependencies... 145s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 146s autopkgtest [17:27:29]: rebooting testbed after setup commands that affected boot 186s autopkgtest [17:28:09]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 09:50:31 UTC 2025 189s autopkgtest [17:28:12]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 204s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (dsc) [4834 B] 204s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (tar) [661 kB] 204s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (tar) [5679 kB] 204s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (diff) [140 kB] 205s gpgv: Signature made Fri Sep 12 02:03:07 2025 UTC 205s gpgv: using RSA key 43B03E28326C54CFA2EC66A340F65066AD7C16DB 205s gpgv: Can't check signature: No public key 205s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.0-2.dsc: no acceptable signature found 206s autopkgtest [17:28:29]: testing package glib2.0 version 2.86.0-2 210s autopkgtest [17:28:33]: build not needed 223s autopkgtest [17:28:46]: test build: preparing testbed 223s Reading package lists... 224s Building dependency tree... 224s Reading state information... 224s Solving dependencies... 225s The following NEW packages will be installed: 225s build-essential cpp cpp-15 cpp-15-aarch64-linux-gnu cpp-aarch64-linux-gnu 225s g++ g++-15 g++-15-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-15 225s gcc-15-aarch64-linux-gnu gcc-aarch64-linux-gnu libasan8 libblkid-dev 225s libcc1-0 libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 libhwasan0 225s libisl23 libitm1 liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 225s libpcre2-dev libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev 225s libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf 225s pkgconf-bin uuid-dev zlib1g-dev 225s 0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded. 225s Need to get 69.7 MB of archives. 225s After this operation, 246 MB of additional disk space will be used. 225s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libisl23 arm64 0.27-1 [676 kB] 225s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libmpc3 arm64 1.3.1-1build3 [58.9 kB] 225s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [11.7 MB] 227s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15 arm64 15.2.0-5ubuntu1 [1028 B] 227s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [5736 B] 227s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp arm64 4:15.2.0-4ubuntu1 [22.4 kB] 227s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libcc1-0 arm64 15.2.0-5ubuntu1 [49.2 kB] 227s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libgomp1 arm64 15.2.0-5ubuntu1 [148 kB] 227s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libitm1 arm64 15.2.0-5ubuntu1 [28.1 kB] 227s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libasan8 arm64 15.2.0-5ubuntu1 [2922 kB] 227s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 liblsan0 arm64 15.2.0-5ubuntu1 [1316 kB] 227s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libtsan2 arm64 15.2.0-5ubuntu1 [2689 kB] 227s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libubsan1 arm64 15.2.0-5ubuntu1 [1176 kB] 227s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libhwasan0 arm64 15.2.0-5ubuntu1 [1639 kB] 227s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libgcc-15-dev arm64 15.2.0-5ubuntu1 [2601 kB] 227s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [23.1 MB] 228s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15 arm64 15.2.0-5ubuntu1 [512 kB] 228s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [1206 B] 228s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc arm64 4:15.2.0-4ubuntu1 [5016 B] 228s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libstdc++-15-dev arm64 15.2.0-5ubuntu1 [2545 kB] 228s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [13.2 MB] 229s Get:22 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15 arm64 15.2.0-5ubuntu1 [23.7 kB] 229s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [956 B] 229s Get:24 http://ftpmaster.internal/ubuntu resolute/main arm64 g++ arm64 4:15.2.0-4ubuntu1 [1080 B] 229s Get:25 http://ftpmaster.internal/ubuntu resolute/main arm64 build-essential arm64 12.12ubuntu1 [5082 B] 229s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 libffi-dev arm64 3.5.2-1build1 [62.0 kB] 229s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 uuid-dev arm64 2.41-4ubuntu4 [57.5 kB] 229s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 libblkid-dev arm64 2.41-4ubuntu4 [260 kB] 229s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 libsepol-dev arm64 3.8.1-1 [418 kB] 229s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-16-0 arm64 10.46-1 [225 kB] 229s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-32-0 arm64 10.46-1 [213 kB] 229s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-posix3 arm64 10.46-1 [7300 B] 229s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-dev arm64 10.46-1 [772 kB] 229s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libselinux1-dev arm64 3.8.1-1build1 [190 kB] 229s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libmount-dev arm64 2.41-4ubuntu4 [36.2 kB] 229s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libsysprof-capture-4-dev arm64 48.0-2 [55.1 kB] 229s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libpkgconf3 arm64 1.8.1-4build1 [33.7 kB] 229s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf-bin arm64 1.8.1-4build1 [21.7 kB] 229s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf arm64 1.8.1-4build1 [16.8 kB] 229s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu2 [899 kB] 229s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev arm64 2.86.0-2 [1911 kB] 230s Fetched 69.7 MB in 4s (15.9 MB/s) 230s Selecting previously unselected package libisl23:arm64. 230s (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 ... 83359 files and directories currently installed.) 230s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ... 230s Unpacking libisl23:arm64 (0.27-1) ... 230s Selecting previously unselected package libmpc3:arm64. 230s Preparing to unpack .../01-libmpc3_1.3.1-1build3_arm64.deb ... 230s Unpacking libmpc3:arm64 (1.3.1-1build3) ... 230s Selecting previously unselected package cpp-15-aarch64-linux-gnu. 230s Preparing to unpack .../02-cpp-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 230s Unpacking cpp-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 231s Selecting previously unselected package cpp-15. 231s Preparing to unpack .../03-cpp-15_15.2.0-5ubuntu1_arm64.deb ... 231s Unpacking cpp-15 (15.2.0-5ubuntu1) ... 231s Selecting previously unselected package cpp-aarch64-linux-gnu. 231s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 231s Unpacking cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 231s Selecting previously unselected package cpp. 231s Preparing to unpack .../05-cpp_4%3a15.2.0-4ubuntu1_arm64.deb ... 231s Unpacking cpp (4:15.2.0-4ubuntu1) ... 231s Selecting previously unselected package libcc1-0:arm64. 231s Preparing to unpack .../06-libcc1-0_15.2.0-5ubuntu1_arm64.deb ... 231s Unpacking libcc1-0:arm64 (15.2.0-5ubuntu1) ... 231s Selecting previously unselected package libgomp1:arm64. 231s Preparing to unpack .../07-libgomp1_15.2.0-5ubuntu1_arm64.deb ... 231s Unpacking libgomp1:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libitm1:arm64. 232s Preparing to unpack .../08-libitm1_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libitm1:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libasan8:arm64. 232s Preparing to unpack .../09-libasan8_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libasan8:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package liblsan0:arm64. 232s Preparing to unpack .../10-liblsan0_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking liblsan0:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libtsan2:arm64. 232s Preparing to unpack .../11-libtsan2_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libtsan2:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libubsan1:arm64. 232s Preparing to unpack .../12-libubsan1_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libubsan1:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libhwasan0:arm64. 232s Preparing to unpack .../13-libhwasan0_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libhwasan0:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package libgcc-15-dev:arm64. 232s Preparing to unpack .../14-libgcc-15-dev_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking libgcc-15-dev:arm64 (15.2.0-5ubuntu1) ... 232s Selecting previously unselected package gcc-15-aarch64-linux-gnu. 232s Preparing to unpack .../15-gcc-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 232s Unpacking gcc-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 233s Selecting previously unselected package gcc-15. 233s Preparing to unpack .../16-gcc-15_15.2.0-5ubuntu1_arm64.deb ... 233s Unpacking gcc-15 (15.2.0-5ubuntu1) ... 233s Selecting previously unselected package gcc-aarch64-linux-gnu. 233s Preparing to unpack .../17-gcc-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 233s Unpacking gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 233s Selecting previously unselected package gcc. 233s Preparing to unpack .../18-gcc_4%3a15.2.0-4ubuntu1_arm64.deb ... 233s Unpacking gcc (4:15.2.0-4ubuntu1) ... 233s Selecting previously unselected package libstdc++-15-dev:arm64. 233s Preparing to unpack .../19-libstdc++-15-dev_15.2.0-5ubuntu1_arm64.deb ... 233s Unpacking libstdc++-15-dev:arm64 (15.2.0-5ubuntu1) ... 233s Selecting previously unselected package g++-15-aarch64-linux-gnu. 233s Preparing to unpack .../20-g++-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 233s Unpacking g++-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 234s Selecting previously unselected package g++-15. 234s Preparing to unpack .../21-g++-15_15.2.0-5ubuntu1_arm64.deb ... 234s Unpacking g++-15 (15.2.0-5ubuntu1) ... 234s Selecting previously unselected package g++-aarch64-linux-gnu. 234s Preparing to unpack .../22-g++-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 234s Unpacking g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 234s Selecting previously unselected package g++. 234s Preparing to unpack .../23-g++_4%3a15.2.0-4ubuntu1_arm64.deb ... 234s Unpacking g++ (4:15.2.0-4ubuntu1) ... 234s Selecting previously unselected package build-essential. 234s Preparing to unpack .../24-build-essential_12.12ubuntu1_arm64.deb ... 234s Unpacking build-essential (12.12ubuntu1) ... 234s Selecting previously unselected package libffi-dev:arm64. 234s Preparing to unpack .../25-libffi-dev_3.5.2-1build1_arm64.deb ... 234s Unpacking libffi-dev:arm64 (3.5.2-1build1) ... 234s Selecting previously unselected package uuid-dev:arm64. 234s Preparing to unpack .../26-uuid-dev_2.41-4ubuntu4_arm64.deb ... 234s Unpacking uuid-dev:arm64 (2.41-4ubuntu4) ... 234s Selecting previously unselected package libblkid-dev:arm64. 234s Preparing to unpack .../27-libblkid-dev_2.41-4ubuntu4_arm64.deb ... 234s Unpacking libblkid-dev:arm64 (2.41-4ubuntu4) ... 234s Selecting previously unselected package libsepol-dev:arm64. 234s Preparing to unpack .../28-libsepol-dev_3.8.1-1_arm64.deb ... 234s Unpacking libsepol-dev:arm64 (3.8.1-1) ... 234s Selecting previously unselected package libpcre2-16-0:arm64. 234s Preparing to unpack .../29-libpcre2-16-0_10.46-1_arm64.deb ... 234s Unpacking libpcre2-16-0:arm64 (10.46-1) ... 235s Selecting previously unselected package libpcre2-32-0:arm64. 235s Preparing to unpack .../30-libpcre2-32-0_10.46-1_arm64.deb ... 235s Unpacking libpcre2-32-0:arm64 (10.46-1) ... 235s Selecting previously unselected package libpcre2-posix3:arm64. 235s Preparing to unpack .../31-libpcre2-posix3_10.46-1_arm64.deb ... 235s Unpacking libpcre2-posix3:arm64 (10.46-1) ... 235s Selecting previously unselected package libpcre2-dev:arm64. 235s Preparing to unpack .../32-libpcre2-dev_10.46-1_arm64.deb ... 235s Unpacking libpcre2-dev:arm64 (10.46-1) ... 235s Selecting previously unselected package libselinux1-dev:arm64. 235s Preparing to unpack .../33-libselinux1-dev_3.8.1-1build1_arm64.deb ... 235s Unpacking libselinux1-dev:arm64 (3.8.1-1build1) ... 235s Selecting previously unselected package libmount-dev:arm64. 235s Preparing to unpack .../34-libmount-dev_2.41-4ubuntu4_arm64.deb ... 235s Unpacking libmount-dev:arm64 (2.41-4ubuntu4) ... 235s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 235s Preparing to unpack .../35-libsysprof-capture-4-dev_48.0-2_arm64.deb ... 235s Unpacking libsysprof-capture-4-dev:arm64 (48.0-2) ... 235s Selecting previously unselected package libpkgconf3:arm64. 235s Preparing to unpack .../36-libpkgconf3_1.8.1-4build1_arm64.deb ... 235s Unpacking libpkgconf3:arm64 (1.8.1-4build1) ... 235s Selecting previously unselected package pkgconf-bin. 235s Preparing to unpack .../37-pkgconf-bin_1.8.1-4build1_arm64.deb ... 235s Unpacking pkgconf-bin (1.8.1-4build1) ... 235s Selecting previously unselected package pkgconf:arm64. 235s Preparing to unpack .../38-pkgconf_1.8.1-4build1_arm64.deb ... 235s Unpacking pkgconf:arm64 (1.8.1-4build1) ... 235s Selecting previously unselected package zlib1g-dev:arm64. 235s Preparing to unpack .../39-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_arm64.deb ... 235s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 235s Selecting previously unselected package libgio-2.0-dev:arm64. 235s Preparing to unpack .../40-libgio-2.0-dev_2.86.0-2_arm64.deb ... 235s Unpacking libgio-2.0-dev:arm64 (2.86.0-2) ... 235s Setting up libgomp1:arm64 (15.2.0-5ubuntu1) ... 235s Setting up libffi-dev:arm64 (3.5.2-1build1) ... 235s Setting up libpcre2-16-0:arm64 (10.46-1) ... 235s Setting up libsysprof-capture-4-dev:arm64 (48.0-2) ... 235s Setting up libpcre2-32-0:arm64 (10.46-1) ... 235s Setting up libpkgconf3:arm64 (1.8.1-4build1) ... 235s Setting up uuid-dev:arm64 (2.41-4ubuntu4) ... 236s Setting up libmpc3:arm64 (1.3.1-1build3) ... 236s Setting up libsepol-dev:arm64 (3.8.1-1) ... 236s Setting up pkgconf-bin (1.8.1-4build1) ... 236s Setting up libubsan1:arm64 (15.2.0-5ubuntu1) ... 236s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 236s Setting up libpcre2-posix3:arm64 (10.46-1) ... 236s Setting up libhwasan0:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libasan8:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libtsan2:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libisl23:arm64 (0.27-1) ... 236s Setting up libcc1-0:arm64 (15.2.0-5ubuntu1) ... 236s Setting up liblsan0:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libitm1:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libblkid-dev:arm64 (2.41-4ubuntu4) ... 236s Setting up cpp-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 236s Setting up libgcc-15-dev:arm64 (15.2.0-5ubuntu1) ... 236s Setting up libpcre2-dev:arm64 (10.46-1) ... 236s Setting up libselinux1-dev:arm64 (3.8.1-1build1) ... 236s Setting up pkgconf:arm64 (1.8.1-4build1) ... 236s Setting up cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 236s Setting up libstdc++-15-dev:arm64 (15.2.0-5ubuntu1) ... 236s Setting up cpp-15 (15.2.0-5ubuntu1) ... 236s Setting up cpp (4:15.2.0-4ubuntu1) ... 236s Setting up libmount-dev:arm64 (2.41-4ubuntu4) ... 236s Setting up libgio-2.0-dev:arm64 (2.86.0-2) ... 236s Setting up gcc-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 236s Setting up gcc-15 (15.2.0-5ubuntu1) ... 236s Setting up g++-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 236s Setting up g++-15 (15.2.0-5ubuntu1) ... 236s Setting up gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 236s Setting up gcc (4:15.2.0-4ubuntu1) ... 236s Setting up g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 236s Setting up g++ (4:15.2.0-4ubuntu1) ... 236s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 236s Setting up build-essential (12.12ubuntu1) ... 236s Processing triggers for libc-bin (2.42-0ubuntu3) ... 236s Processing triggers for man-db (2.13.1-1) ... 238s Processing triggers for libglib2.0-0t64:arm64 (2.86.0-2) ... 238s No schema files found: doing nothing. 238s Processing triggers for install-info (7.1.1-1ubuntu1) ... 239s autopkgtest [17:29:02]: test build: [----------------------- 240s + mode=dynamic 240s + getopt -o --long static -n debian/tests/build -- 240s + getopt_temp= -- 240s + eval set -- -- 240s + set -- -- 240s + true 240s + shift 240s + break 240s + mktemp -d 240s + WORKDIR=/tmp/tmp.f1AJUy0ogq 240s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 240s + cd /tmp/tmp.f1AJUy0ogq 240s + [ -n ] 240s + CROSS_COMPILE= 240s + cat 240s + cat 240s + cat 240s + cat 240s + cat 240s + cat 240s + cflags= 240s + pcflags= 240s + packages=glib-2.0 240s + pkg-config --cflags --libs glib-2.0 240s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 240s build (glib, dynamic): OK 240s + echo build (glib, dynamic): OK 240s + [ -x glib-dynamic ] 240s + foo=bar ./glib-dynamic 240s + echo run (glib, dynamic): OK 240s + cflags= 240s + pcflags= 240s + packages=gobject-2.0 240s run (glib, dynamic): OK 240s + pkg-config --cflags --libs gobject-2.0 240s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 240s build (gobject, dynamic): OK 240s + echo build (gobject, dynamic): OK 240s + [ -x gobject-dynamic ] 240s + foo=bar ./gobject-dynamic 240s + echo run (gobject, dynamic): OK 240s + cflags= 240s + pcflags= 240s + packages=gio-2.0 240s run (gobject, dynamic): OK 240s + pkg-config --cflags --libs gio-2.0 240s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/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 241s build (gio, dynamic): OK 241s + echo build (gio, dynamic): OK 241s + [ -x gio-dynamic ] 241s + foo=bar ./gio-dynamic 241s + echo run (gio, dynamic): OK 241s + cflags= 241s + pcflags= 241s + packages=gio-unix-2.0 241s + pkg-config --cflags --libs gio-unix-2.0 241s run (gio, dynamic): OK 241s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/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 241s build (gio-unix, dynamic): OK 241s + echo build (gio-unix, dynamic): OK 241s + [ -x gio-unix-dynamic ] 241s + foo=bar ./gio-unix-dynamic 241s + echo run (gio-unix, dynamic): OK 241s + cflags= 241s + pcflags= 241s + packages=gmodule-2.0 241s run (gio-unix, dynamic): OK 241s + pkg-config --cflags --libs gmodule-2.0 241s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 242s build (gmodule, dynamic): OK 242s + echo build (gmodule, dynamic): OK 242s + [ -x gmodule-dynamic ] 242s + foo=bar ./gmodule-dynamic 242s + echo run (gmodule, dynamic): OK 242s + cflags= 242s + pcflags= 242s + packages=gthread-2.0 242s + pkg-config --cflags --libs gthread-2.0 242s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 242s + echo build (gthread, dynamic): OK 242s + [ -x gthread-dynamic ] 242s + foo=bar ./gthread-dynamic 242s + echo run (gthread, dynamic): OK 242s + rm -rf /tmp/tmp.f1AJUy0ogq 242s autopkgtest [17:29:05]: test build: -----------------------] 242s run (gmodule, dynamic): OK 242s build (gthread, dynamic): OK 242s run (gthread, dynamic): OK 243s build PASS (superficial) 243s autopkgtest [17:29:06]: test build: - - - - - - - - - - results - - - - - - - - - - 243s autopkgtest [17:29:06]: test build-static: preparing testbed 243s Reading package lists... 244s Building dependency tree... 244s Reading state information... 244s Solving dependencies... 245s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 246s autopkgtest [17:29:09]: test build-static: [----------------------- 246s + mode=dynamic 246s + getopt -o --long static -n debian/tests/build -- --static 246s + getopt_temp= --static -- 246s + eval set -- --static -- 246s + set -- --static -- 246s + true 246s + mode=static 246s + shift 246s + continue 246s + true 246s + shift 246s + break 246s + mktemp -d 246s + WORKDIR=/tmp/tmp.ff3sHROk49 246s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 246s + cd /tmp/tmp.ff3sHROk49 246s + [ -n ] 246s + CROSS_COMPILE= 246s + cat 246s + cat 246s + cat 246s + cat 246s + cat 246s + cat 246s + cflags= 246s + pcflags= 246s + packages=glib-2.0 246s + cflags=-static 246s + pcflags=--static 246s + pkg-config --static --cflags --libs glib-2.0 246s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 247s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 247s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s build (glib, static): OK 247s run (glib, static): OK 247s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s + echo build (glib, static): OK 247s + [ -x glib-static ] 247s + foo=bar ./glib-static 247s + echo run (glib, static): OK 247s + cflags= 247s + pcflags= 247s + packages=gobject-2.0 247s + cflags=-static 247s + pcflags=--static 247s + pkg-config --static --cflags --libs gobject-2.0 247s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 247s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 247s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s build (gobject, static): OK 247s + echo build (gobject, static): OK 247s + [ -x gobject-static ] 247s + foo=bar ./gobject-static 247s + echo run (gobject, static): OK 247s + cflags= 247s + pcflags= 247s + packages=gio-2.0 247s + cflags=-static 247s + pcflags=--static 247s + continue 247s + cflags= 247s + pcflags= 247s + packages=gio-unix-2.0 247s + cflags=-static 247s + pcflags=--static 247s + continue 247s + cflags= 247s + pcflags= 247s + packages=gmodule-2.0 247s + cflags=-static 247s + pcflags=--static 247s run (gobject, static): OK 247s + pkg-config --static --cflags --libs gmodule-2.0 247s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 247s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 247s (.text+0x5c8): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 247s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 247s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 248s build (gmodule, static): OK 248s + echo build (gmodule, static): OK 248s + [ -x gmodule-static ] 248s + foo=bar ./gmodule-static 248s run (gmodule, static): OK 248s + echo run (gmodule, static): OK 248s + cflags= 248s + pcflags= 248s + packages=gthread-2.0 248s + cflags=-static 248s + pcflags=--static 248s + pkg-config --static --cflags --libs gthread-2.0 248s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 248s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 248s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 248s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 248s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 248s build (gthread, static): OK 248s + echo build (gthread, static): OK 248s + [ -x gthread-static ] 248s + foo=bar ./gthread-static 248s + echo run (gthread, static): OK 248s + rm -rf /tmp/tmp.ff3sHROk49 248s run (gthread, static): OK 248s autopkgtest [17:29:11]: test build-static: -----------------------] 249s build-static PASS (superficial) 249s autopkgtest [17:29:12]: test build-static: - - - - - - - - - - results - - - - - - - - - - 249s autopkgtest [17:29:12]: test girepository-tools: preparing testbed 270s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 335s autopkgtest [17:30:38]: testbed dpkg architecture: arm64 336s autopkgtest [17:30:39]: testbed apt version: 3.1.6ubuntu2 336s autopkgtest [17:30:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 336s autopkgtest [17:30:39]: testbed release detected to be: resolute 337s autopkgtest [17:30:40]: updating testbed package index (apt update) 338s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 338s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 338s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 338s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 338s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 338s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 338s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 338s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 338s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 338s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 338s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 338s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 338s Fetched 831 kB in 1s (863 kB/s) 340s Reading package lists... 341s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 341s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 341s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 341s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 342s Reading package lists... 342s Reading package lists... 343s Building dependency tree... 343s Reading state information... 343s Calculating upgrade... 344s The following packages will be upgraded: 344s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 344s libpython3-stdlib lto-disabled-list python3 python3-minimal 344s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 344s Need to get 2671 kB of archives. 344s After this operation, 66.6 kB of additional disk space will be used. 344s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 344s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 344s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 344s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 345s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 345s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 345s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 345s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 345s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 345s dpkg-preconfigure: unable to re-open stdin: No such file or directory 345s Fetched 2671 kB in 1s (2988 kB/s) 346s (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 ... 83359 files and directories currently installed.) 346s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 346s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 346s Setting up python3-minimal (3.13.7-2) ... 346s (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 ... 83359 files and directories currently installed.) 346s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 346s running python pre-rtupdate hooks for python3.13... 346s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 347s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 347s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 347s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 347s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 347s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 347s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 347s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 347s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 347s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 347s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 348s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 348s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 348s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 348s Unpacking lto-disabled-list (71) over (69) ... 348s Setting up lto-disabled-list (71) ... 348s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 348s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 348s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 348s Setting up apt (3.1.8ubuntu1) ... 349s Setting up python3 (3.13.7-2) ... 349s running python rtupdate hooks for python3.13... 349s running python post-rtupdate hooks for python3.13... 349s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 349s Setting up flash-kernel (3.109ubuntu7) ... 350s flash-kernel: deferring update (trigger activated) 350s Processing triggers for libc-bin (2.42-0ubuntu3) ... 350s Processing triggers for man-db (2.13.1-1) ... 352s Processing triggers for initramfs-tools (0.150ubuntu3) ... 352s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 380s System running in EFI mode, skipping. 380s Processing triggers for flash-kernel (3.109ubuntu7) ... 381s System running in EFI mode, skipping. 381s autopkgtest [17:31:24]: upgrading testbed (apt dist-upgrade and autopurge) 382s Reading package lists... 383s Building dependency tree... 383s Reading state information... 383s Calculating upgrade... 384s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 384s Reading package lists... 385s Building dependency tree... 385s Reading state information... 385s Solving dependencies... 385s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 386s autopkgtest [17:31:29]: rebooting testbed after setup commands that affected boot 416s Reading package lists... 416s Building dependency tree... 416s Reading state information... 416s Solving dependencies... 417s The following NEW packages will be installed: 417s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 417s native-architecture 417s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 417s Need to get 1045 kB of archives. 417s After this operation, 12.7 MB of additional disk space will be used. 417s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.0-2 [865 kB] 417s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6 [2140 B] 417s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-2.0-0 arm64 2.86.0-2 [73.4 kB] 417s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.0-2 [104 kB] 418s Fetched 1045 kB in 1s (1524 kB/s) 418s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 418s (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 ... 83359 files and directories currently installed.) 418s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.0-2_arm64.deb ... 418s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 418s Selecting previously unselected package native-architecture. 418s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 418s Unpacking native-architecture (0.2.6) ... 418s Selecting previously unselected package libgirepository-2.0-0:arm64. 418s Preparing to unpack .../libgirepository-2.0-0_2.86.0-2_arm64.deb ... 418s Unpacking libgirepository-2.0-0:arm64 (2.86.0-2) ... 418s Selecting previously unselected package girepository-tools:arm64. 418s Preparing to unpack .../girepository-tools_2.86.0-2_arm64.deb ... 418s Unpacking girepository-tools:arm64 (2.86.0-2) ... 418s Setting up native-architecture (0.2.6) ... 418s Setting up libgirepository-2.0-0:arm64 (2.86.0-2) ... 418s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 418s Setting up girepository-tools:arm64 (2.86.0-2) ... 418s Processing triggers for man-db (2.13.1-1) ... 419s Processing triggers for libc-bin (2.42-0ubuntu3) ... 423s autopkgtest [17:32:06]: test girepository-tools: [----------------------- 424s + cd /tmp/autopkgtest.gF1VIw/autopkgtest_tmp 424s + dpkg-architecture -qDEB_HOST_GNU_TYPE 424s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 424s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 424s + dpkg-architecture -qDEB_HOST_MULTIARCH 424s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 424s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 424s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 424s typelib: GLib-2.0 424s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 424s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 424s autopkgtest [17:32:07]: test girepository-tools: -----------------------] 425s girepository-tools PASS (superficial) 425s autopkgtest [17:32:08]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 425s autopkgtest [17:32:08]: test libgio-2.0-dev-bin: preparing testbed 446s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 504s autopkgtest [17:33:27]: testbed dpkg architecture: arm64 505s autopkgtest [17:33:28]: testbed apt version: 3.1.6ubuntu2 505s autopkgtest [17:33:28]: @@@@@@@@@@@@@@@@@@@@ test bed setup 505s autopkgtest [17:33:28]: testbed release detected to be: resolute 506s autopkgtest [17:33:29]: updating testbed package index (apt update) 506s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 506s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 506s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 507s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 507s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 507s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 507s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 507s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 507s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 507s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 507s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 507s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 507s Fetched 831 kB in 1s (944 kB/s) 508s Reading package lists... 509s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 509s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 509s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 509s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 510s Reading package lists... 510s Reading package lists... 510s Building dependency tree... 510s Reading state information... 510s Calculating upgrade... 511s The following packages will be upgraded: 511s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 511s libpython3-stdlib lto-disabled-list python3 python3-minimal 511s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 511s Need to get 2671 kB of archives. 511s After this operation, 66.6 kB of additional disk space will be used. 511s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 511s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 511s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 511s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 511s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 512s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 512s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 512s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 512s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 512s dpkg-preconfigure: unable to re-open stdin: No such file or directory 512s Fetched 2671 kB in 1s (2714 kB/s) 512s (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 ... 83359 files and directories currently installed.) 512s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 512s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 512s Setting up python3-minimal (3.13.7-2) ... 513s (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 ... 83359 files and directories currently installed.) 513s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 513s running python pre-rtupdate hooks for python3.13... 513s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 513s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 513s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 513s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 513s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 513s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 513s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 513s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 513s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 513s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 513s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 513s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 513s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 514s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 514s Unpacking lto-disabled-list (71) over (69) ... 514s Setting up lto-disabled-list (71) ... 514s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 514s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 514s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 514s Setting up apt (3.1.8ubuntu1) ... 514s Setting up python3 (3.13.7-2) ... 514s running python rtupdate hooks for python3.13... 514s running python post-rtupdate hooks for python3.13... 514s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 514s Setting up flash-kernel (3.109ubuntu7) ... 515s flash-kernel: deferring update (trigger activated) 515s Processing triggers for libc-bin (2.42-0ubuntu3) ... 515s Processing triggers for man-db (2.13.1-1) ... 517s Processing triggers for initramfs-tools (0.150ubuntu3) ... 517s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 537s System running in EFI mode, skipping. 537s Processing triggers for flash-kernel (3.109ubuntu7) ... 537s System running in EFI mode, skipping. 537s autopkgtest [17:34:00]: upgrading testbed (apt dist-upgrade and autopurge) 538s Reading package lists... 538s Building dependency tree... 538s Reading state information... 539s Calculating upgrade... 539s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 539s Reading package lists... 540s Building dependency tree... 540s Reading state information... 540s Solving dependencies... 540s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 540s autopkgtest [17:34:03]: rebooting testbed after setup commands that affected boot 571s Reading package lists... 572s Building dependency tree... 572s Reading state information... 572s Solving dependencies... 572s The following NEW packages will be installed: 572s libgio-2.0-dev-bin python3-packaging 572s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 572s Need to get 181 kB of archives. 572s After this operation, 1077 kB of additional disk space will be used. 572s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-packaging all 25.0-1 [52.8 kB] 573s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.0-2 [128 kB] 573s Fetched 181 kB in 0s (375 kB/s) 573s Selecting previously unselected package python3-packaging. 573s (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 ... 83359 files and directories currently installed.) 573s Preparing to unpack .../python3-packaging_25.0-1_all.deb ... 573s Unpacking python3-packaging (25.0-1) ... 573s Selecting previously unselected package libgio-2.0-dev-bin. 573s Preparing to unpack .../libgio-2.0-dev-bin_2.86.0-2_arm64.deb ... 573s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 573s Setting up python3-packaging (25.0-1) ... 574s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 574s Processing triggers for man-db (2.13.1-1) ... 581s autopkgtest [17:34:44]: test libgio-2.0-dev-bin: [----------------------- 581s + gdbus-codegen --help 581s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 581s [--c-namespace NAMESPACE] [--c-generate-object-manager] 581s [--c-generate-autocleanup {none,objects,all}] 581s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 581s [--generate-rst OUTFILES] [--pragma-once] 581s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 581s [--glib-min-required VERSION] 581s [--glib-max-allowed VERSION] 581s [--symbol-decorator SYMBOL_DECORATOR] 581s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 581s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 581s [--generate-c-code OUTFILES | --header | --body | 581s --interface-info-header | --interface-info-body] 581s [--output FILE | --output-directory OUTDIR] 581s FILE [FILE ...] 581s 581s D-Bus code and documentation generator 581s 581s positional arguments: 581s FILE D-Bus introspection XML file 581s 581s options: 581s -h, --help show this help message and exit 581s --interface-prefix PREFIX 581s String to strip from D-Bus interface names for code 581s and docs 581s --c-namespace NAMESPACE 581s The namespace to use for generated C code 581s --c-generate-object-manager 581s Generate a GDBusObjectManagerClient subclass when 581s generating C code 581s --c-generate-autocleanup {none,objects,all} 581s Generate autocleanup support 581s --generate-docbook OUTFILES 581s Generate Docbook in OUTFILES-org.Project.IFace.xml 581s --generate-md OUTFILES 581s Generate Markdown in OUTFILES-org.Project.IFace.md 581s --generate-rst OUTFILES 581s Generate reStructuredText in OUTFILES- 581s org.Project.IFace.rst 581s --pragma-once Use "pragma once" as the inclusion guard 581s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 581s Add annotation (may be used several times) 581s --glib-min-required VERSION 581s Minimum version of GLib to be supported by the 581s outputted code (default: 2.30) 581s --glib-max-allowed VERSION 581s Maximum version of GLib to be used by the outputted 581s code (default: current GLib version) 581s --symbol-decorator SYMBOL_DECORATOR 581s Macro used to decorate a symbol in the outputted 581s header, possibly to export symbols 581s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 581s Additional header required for decorator specified by 581s --symbol-decorator 581s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 581s Additional define required for decorator specified by 581s --symbol-decorator 581s --generate-c-code OUTFILES 581s Generate C code in OUTFILES.[ch] 581s --header Generate C headers 581s --body Generate C code 581s --interface-info-header 581s Generate GDBusInterfaceInfo C header 581s --interface-info-body 581s Generate GDBusInterfaceInfo C code 581s --output FILE Write output into the specified file 581s --output-directory OUTDIR 581s Location to output generated files 581s + glib-compile-resources --version 581s 2.86.0 581s + glib-genmarshal --version 581s glib-genmarshal version 2.86.0 581s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 581s You may redistribute copies of glib-genmarshal under the terms of 581s the GNU General Public License which can be found in the 581s GLib source package. Sources, examples and contact 581s information are available at http://www.gtk.org 581s + glib-gettextize --version 581s /usr/bin/glib-gettextize (GNU glib) 2.86.0 581s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 581s This is free software; see the source for copying conditions. There is NO 581s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 581s Written by Ulrich Drepper 581s + glib-mkenums --version 581s glib-mkenums version 2.86.0 581s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 581s You may redistribute copies of glib-mkenums under the terms of 581s the GNU General Public License which can be found in the 581s GLib source package. Sources, examples and contact 581s information are available at http://www.gtk.org 581s + gobject-query tree 582s GObject 582s + gtester --version 582s gtester version 2.86.0 582s + gtester-report --version 582s gtester-report (GLib utils) version 2.86.0. 582s autopkgtest [17:34:45]: test libgio-2.0-dev-bin: -----------------------] 582s libgio-2.0-dev-bin PASS (superficial) 582s autopkgtest [17:34:45]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 583s autopkgtest [17:34:46]: test libglib2.0-dev: preparing testbed 603s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 658s autopkgtest [17:36:01]: testbed dpkg architecture: arm64 659s autopkgtest [17:36:02]: testbed apt version: 3.1.6ubuntu2 659s autopkgtest [17:36:02]: @@@@@@@@@@@@@@@@@@@@ test bed setup 659s autopkgtest [17:36:02]: testbed release detected to be: resolute 660s autopkgtest [17:36:03]: updating testbed package index (apt update) 660s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 660s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 661s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 661s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 661s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 661s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 661s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 661s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 661s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 661s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 661s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 661s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 661s Fetched 831 kB in 1s (936 kB/s) 662s Reading package lists... 663s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 663s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 663s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 663s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 664s Reading package lists... 664s Reading package lists... 664s Building dependency tree... 664s Reading state information... 664s Calculating upgrade... 664s The following packages will be upgraded: 664s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 664s libpython3-stdlib lto-disabled-list python3 python3-minimal 665s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 665s Need to get 2671 kB of archives. 665s After this operation, 66.6 kB of additional disk space will be used. 665s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 665s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 665s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 665s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 665s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 665s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 665s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 665s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 665s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 666s dpkg-preconfigure: unable to re-open stdin: No such file or directory 666s Fetched 2671 kB in 1s (3089 kB/s) 666s (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 ... 83359 files and directories currently installed.) 666s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 666s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 666s Setting up python3-minimal (3.13.7-2) ... 667s (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 ... 83359 files and directories currently installed.) 667s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 667s running python pre-rtupdate hooks for python3.13... 667s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 667s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 667s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 667s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 667s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 667s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 667s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 668s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 668s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 668s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 668s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 668s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 668s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 668s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 668s Unpacking lto-disabled-list (71) over (69) ... 668s Setting up lto-disabled-list (71) ... 668s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 668s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 668s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 668s Setting up apt (3.1.8ubuntu1) ... 669s Setting up python3 (3.13.7-2) ... 669s running python rtupdate hooks for python3.13... 669s running python post-rtupdate hooks for python3.13... 669s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 669s Setting up flash-kernel (3.109ubuntu7) ... 669s flash-kernel: deferring update (trigger activated) 669s Processing triggers for libc-bin (2.42-0ubuntu3) ... 669s Processing triggers for man-db (2.13.1-1) ... 671s Processing triggers for initramfs-tools (0.150ubuntu3) ... 671s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 688s System running in EFI mode, skipping. 688s Processing triggers for flash-kernel (3.109ubuntu7) ... 688s System running in EFI mode, skipping. 688s autopkgtest [17:36:31]: upgrading testbed (apt dist-upgrade and autopurge) 689s Reading package lists... 689s Building dependency tree... 689s Reading state information... 689s Calculating upgrade... 690s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 690s Reading package lists... 690s Building dependency tree... 690s Reading state information... 691s Solving dependencies... 691s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 691s autopkgtest [17:36:34]: rebooting testbed after setup commands that affected boot 720s Reading package lists... 720s Building dependency tree... 720s Reading state information... 720s Solving dependencies... 720s The following NEW packages will be installed: 720s build-essential cpp cpp-15 cpp-15-aarch64-linux-gnu cpp-aarch64-linux-gnu 720s g++ g++-15 g++-15-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-15 720s gcc-15-aarch64-linux-gnu gcc-aarch64-linux-gnu gir1.2-glib-2.0-dev 720s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-15-dev 720s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 720s libglib2.0-dev libglib2.0-dev-bin libgomp1 libhwasan0 libisl23 libitm1 720s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 720s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-15-dev 720s libsysprof-capture-4-dev libtsan2 libubsan1 native-architecture pkgconf 720s pkgconf-bin python3-packaging uuid-dev zlib1g-dev 721s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 721s Need to get 71.0 MB of archives. 721s After this operation, 261 MB of additional disk space will be used. 721s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libisl23 arm64 0.27-1 [676 kB] 721s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libmpc3 arm64 1.3.1-1build3 [58.9 kB] 721s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [11.7 MB] 722s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15 arm64 15.2.0-5ubuntu1 [1028 B] 722s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [5736 B] 722s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp arm64 4:15.2.0-4ubuntu1 [22.4 kB] 722s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libcc1-0 arm64 15.2.0-5ubuntu1 [49.2 kB] 722s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libgomp1 arm64 15.2.0-5ubuntu1 [148 kB] 722s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libitm1 arm64 15.2.0-5ubuntu1 [28.1 kB] 722s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libasan8 arm64 15.2.0-5ubuntu1 [2922 kB] 722s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 liblsan0 arm64 15.2.0-5ubuntu1 [1316 kB] 723s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libtsan2 arm64 15.2.0-5ubuntu1 [2689 kB] 723s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libubsan1 arm64 15.2.0-5ubuntu1 [1176 kB] 723s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libhwasan0 arm64 15.2.0-5ubuntu1 [1639 kB] 723s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libgcc-15-dev arm64 15.2.0-5ubuntu1 [2601 kB] 723s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [23.1 MB] 724s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15 arm64 15.2.0-5ubuntu1 [512 kB] 724s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [1206 B] 724s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc arm64 4:15.2.0-4ubuntu1 [5016 B] 724s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libstdc++-15-dev arm64 15.2.0-5ubuntu1 [2545 kB] 724s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15-aarch64-linux-gnu arm64 15.2.0-5ubuntu1 [13.2 MB] 725s Get:22 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15 arm64 15.2.0-5ubuntu1 [23.7 kB] 725s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [956 B] 725s Get:24 http://ftpmaster.internal/ubuntu resolute/main arm64 g++ arm64 4:15.2.0-4ubuntu1 [1080 B] 725s Get:25 http://ftpmaster.internal/ubuntu resolute/main arm64 build-essential arm64 12.12ubuntu1 [5082 B] 725s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.0-2 [865 kB] 725s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6 [2140 B] 725s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-2.0-0 arm64 2.86.0-2 [73.4 kB] 725s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.0-2 [104 kB] 725s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 libffi-dev arm64 3.5.2-1build1 [62.0 kB] 725s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 uuid-dev arm64 2.41-4ubuntu4 [57.5 kB] 725s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 libblkid-dev arm64 2.41-4ubuntu4 [260 kB] 725s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 libsepol-dev arm64 3.8.1-1 [418 kB] 725s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-16-0 arm64 10.46-1 [225 kB] 725s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-32-0 arm64 10.46-1 [213 kB] 725s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-posix3 arm64 10.46-1 [7300 B] 725s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-dev arm64 10.46-1 [772 kB] 725s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 libselinux1-dev arm64 3.8.1-1build1 [190 kB] 725s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 libmount-dev arm64 2.41-4ubuntu4 [36.2 kB] 725s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 libsysprof-capture-4-dev arm64 48.0-2 [55.1 kB] 725s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libpkgconf3 arm64 1.8.1-4build1 [33.7 kB] 725s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf-bin arm64 1.8.1-4build1 [21.7 kB] 725s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf arm64 1.8.1-4build1 [16.8 kB] 725s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu2 [899 kB] 725s Get:45 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev arm64 2.86.0-2 [1911 kB] 725s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-packaging all 25.0-1 [52.8 kB] 725s Get:47 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.0-2 [128 kB] 725s Get:48 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-bin arm64 2.86.0-2 [97.7 kB] 725s Get:49 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev-bin arm64 2.86.0-2 [18.2 kB] 725s Get:50 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev arm64 2.86.0-2 [18.9 kB] 725s Fetched 71.0 MB in 5s (15.6 MB/s) 726s Selecting previously unselected package libisl23:arm64. 726s (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 ... 83359 files and directories currently installed.) 726s Preparing to unpack .../00-libisl23_0.27-1_arm64.deb ... 726s Unpacking libisl23:arm64 (0.27-1) ... 726s Selecting previously unselected package libmpc3:arm64. 726s Preparing to unpack .../01-libmpc3_1.3.1-1build3_arm64.deb ... 726s Unpacking libmpc3:arm64 (1.3.1-1build3) ... 726s Selecting previously unselected package cpp-15-aarch64-linux-gnu. 726s Preparing to unpack .../02-cpp-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking cpp-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package cpp-15. 726s Preparing to unpack .../03-cpp-15_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking cpp-15 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package cpp-aarch64-linux-gnu. 726s Preparing to unpack .../04-cpp-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 726s Unpacking cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 726s Selecting previously unselected package cpp. 726s Preparing to unpack .../05-cpp_4%3a15.2.0-4ubuntu1_arm64.deb ... 726s Unpacking cpp (4:15.2.0-4ubuntu1) ... 726s Selecting previously unselected package libcc1-0:arm64. 726s Preparing to unpack .../06-libcc1-0_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking libcc1-0:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package libgomp1:arm64. 726s Preparing to unpack .../07-libgomp1_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking libgomp1:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package libitm1:arm64. 726s Preparing to unpack .../08-libitm1_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking libitm1:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package libasan8:arm64. 726s Preparing to unpack .../09-libasan8_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking libasan8:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package liblsan0:arm64. 726s Preparing to unpack .../10-liblsan0_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking liblsan0:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package libtsan2:arm64. 726s Preparing to unpack .../11-libtsan2_15.2.0-5ubuntu1_arm64.deb ... 726s Unpacking libtsan2:arm64 (15.2.0-5ubuntu1) ... 726s Selecting previously unselected package libubsan1:arm64. 727s Preparing to unpack .../12-libubsan1_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking libubsan1:arm64 (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package libhwasan0:arm64. 727s Preparing to unpack .../13-libhwasan0_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking libhwasan0:arm64 (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package libgcc-15-dev:arm64. 727s Preparing to unpack .../14-libgcc-15-dev_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking libgcc-15-dev:arm64 (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package gcc-15-aarch64-linux-gnu. 727s Preparing to unpack .../15-gcc-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking gcc-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package gcc-15. 727s Preparing to unpack .../16-gcc-15_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking gcc-15 (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package gcc-aarch64-linux-gnu. 727s Preparing to unpack .../17-gcc-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 727s Unpacking gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 727s Selecting previously unselected package gcc. 727s Preparing to unpack .../18-gcc_4%3a15.2.0-4ubuntu1_arm64.deb ... 727s Unpacking gcc (4:15.2.0-4ubuntu1) ... 727s Selecting previously unselected package libstdc++-15-dev:arm64. 727s Preparing to unpack .../19-libstdc++-15-dev_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking libstdc++-15-dev:arm64 (15.2.0-5ubuntu1) ... 727s Selecting previously unselected package g++-15-aarch64-linux-gnu. 727s Preparing to unpack .../20-g++-15-aarch64-linux-gnu_15.2.0-5ubuntu1_arm64.deb ... 727s Unpacking g++-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 728s Selecting previously unselected package g++-15. 728s Preparing to unpack .../21-g++-15_15.2.0-5ubuntu1_arm64.deb ... 728s Unpacking g++-15 (15.2.0-5ubuntu1) ... 728s Selecting previously unselected package g++-aarch64-linux-gnu. 728s Preparing to unpack .../22-g++-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 728s Unpacking g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 728s Selecting previously unselected package g++. 728s Preparing to unpack .../23-g++_4%3a15.2.0-4ubuntu1_arm64.deb ... 728s Unpacking g++ (4:15.2.0-4ubuntu1) ... 728s Selecting previously unselected package build-essential. 728s Preparing to unpack .../24-build-essential_12.12ubuntu1_arm64.deb ... 728s Unpacking build-essential (12.12ubuntu1) ... 728s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 728s Preparing to unpack .../25-gir1.2-glib-2.0-dev_2.86.0-2_arm64.deb ... 728s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 728s Selecting previously unselected package native-architecture. 728s Preparing to unpack .../26-native-architecture_0.2.6_all.deb ... 728s Unpacking native-architecture (0.2.6) ... 728s Selecting previously unselected package libgirepository-2.0-0:arm64. 728s Preparing to unpack .../27-libgirepository-2.0-0_2.86.0-2_arm64.deb ... 728s Unpacking libgirepository-2.0-0:arm64 (2.86.0-2) ... 728s Selecting previously unselected package girepository-tools:arm64. 728s Preparing to unpack .../28-girepository-tools_2.86.0-2_arm64.deb ... 728s Unpacking girepository-tools:arm64 (2.86.0-2) ... 728s Selecting previously unselected package libffi-dev:arm64. 728s Preparing to unpack .../29-libffi-dev_3.5.2-1build1_arm64.deb ... 728s Unpacking libffi-dev:arm64 (3.5.2-1build1) ... 728s Selecting previously unselected package uuid-dev:arm64. 728s Preparing to unpack .../30-uuid-dev_2.41-4ubuntu4_arm64.deb ... 728s Unpacking uuid-dev:arm64 (2.41-4ubuntu4) ... 728s Selecting previously unselected package libblkid-dev:arm64. 728s Preparing to unpack .../31-libblkid-dev_2.41-4ubuntu4_arm64.deb ... 728s Unpacking libblkid-dev:arm64 (2.41-4ubuntu4) ... 728s Selecting previously unselected package libsepol-dev:arm64. 728s Preparing to unpack .../32-libsepol-dev_3.8.1-1_arm64.deb ... 728s Unpacking libsepol-dev:arm64 (3.8.1-1) ... 728s Selecting previously unselected package libpcre2-16-0:arm64. 728s Preparing to unpack .../33-libpcre2-16-0_10.46-1_arm64.deb ... 728s Unpacking libpcre2-16-0:arm64 (10.46-1) ... 728s Selecting previously unselected package libpcre2-32-0:arm64. 728s Preparing to unpack .../34-libpcre2-32-0_10.46-1_arm64.deb ... 728s Unpacking libpcre2-32-0:arm64 (10.46-1) ... 729s Selecting previously unselected package libpcre2-posix3:arm64. 729s Preparing to unpack .../35-libpcre2-posix3_10.46-1_arm64.deb ... 729s Unpacking libpcre2-posix3:arm64 (10.46-1) ... 729s Selecting previously unselected package libpcre2-dev:arm64. 729s Preparing to unpack .../36-libpcre2-dev_10.46-1_arm64.deb ... 729s Unpacking libpcre2-dev:arm64 (10.46-1) ... 729s Selecting previously unselected package libselinux1-dev:arm64. 729s Preparing to unpack .../37-libselinux1-dev_3.8.1-1build1_arm64.deb ... 729s Unpacking libselinux1-dev:arm64 (3.8.1-1build1) ... 729s Selecting previously unselected package libmount-dev:arm64. 729s Preparing to unpack .../38-libmount-dev_2.41-4ubuntu4_arm64.deb ... 729s Unpacking libmount-dev:arm64 (2.41-4ubuntu4) ... 729s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 729s Preparing to unpack .../39-libsysprof-capture-4-dev_48.0-2_arm64.deb ... 729s Unpacking libsysprof-capture-4-dev:arm64 (48.0-2) ... 729s Selecting previously unselected package libpkgconf3:arm64. 729s Preparing to unpack .../40-libpkgconf3_1.8.1-4build1_arm64.deb ... 729s Unpacking libpkgconf3:arm64 (1.8.1-4build1) ... 729s Selecting previously unselected package pkgconf-bin. 729s Preparing to unpack .../41-pkgconf-bin_1.8.1-4build1_arm64.deb ... 729s Unpacking pkgconf-bin (1.8.1-4build1) ... 729s Selecting previously unselected package pkgconf:arm64. 729s Preparing to unpack .../42-pkgconf_1.8.1-4build1_arm64.deb ... 729s Unpacking pkgconf:arm64 (1.8.1-4build1) ... 729s Selecting previously unselected package zlib1g-dev:arm64. 729s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_arm64.deb ... 729s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 729s Selecting previously unselected package libgio-2.0-dev:arm64. 729s Preparing to unpack .../44-libgio-2.0-dev_2.86.0-2_arm64.deb ... 729s Unpacking libgio-2.0-dev:arm64 (2.86.0-2) ... 729s Selecting previously unselected package python3-packaging. 729s Preparing to unpack .../45-python3-packaging_25.0-1_all.deb ... 729s Unpacking python3-packaging (25.0-1) ... 729s Selecting previously unselected package libgio-2.0-dev-bin. 729s Preparing to unpack .../46-libgio-2.0-dev-bin_2.86.0-2_arm64.deb ... 729s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 729s Selecting previously unselected package libglib2.0-bin. 729s Preparing to unpack .../47-libglib2.0-bin_2.86.0-2_arm64.deb ... 729s Unpacking libglib2.0-bin (2.86.0-2) ... 729s Selecting previously unselected package libglib2.0-dev-bin. 729s Preparing to unpack .../48-libglib2.0-dev-bin_2.86.0-2_arm64.deb ... 729s Unpacking libglib2.0-dev-bin (2.86.0-2) ... 729s Selecting previously unselected package libglib2.0-dev:arm64. 729s Preparing to unpack .../49-libglib2.0-dev_2.86.0-2_arm64.deb ... 729s Unpacking libglib2.0-dev:arm64 (2.86.0-2) ... 729s Setting up native-architecture (0.2.6) ... 729s Setting up libgirepository-2.0-0:arm64 (2.86.0-2) ... 729s Setting up libglib2.0-bin (2.86.0-2) ... 729s Setting up libgomp1:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libffi-dev:arm64 (3.5.2-1build1) ... 729s Setting up libpcre2-16-0:arm64 (10.46-1) ... 729s Setting up libsysprof-capture-4-dev:arm64 (48.0-2) ... 729s Setting up libpcre2-32-0:arm64 (10.46-1) ... 729s Setting up python3-packaging (25.0-1) ... 729s Setting up libpkgconf3:arm64 (1.8.1-4build1) ... 729s Setting up uuid-dev:arm64 (2.41-4ubuntu4) ... 729s Setting up libmpc3:arm64 (1.3.1-1build3) ... 729s Setting up libsepol-dev:arm64 (3.8.1-1) ... 729s Setting up pkgconf-bin (1.8.1-4build1) ... 729s Setting up libubsan1:arm64 (15.2.0-5ubuntu1) ... 729s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 729s Setting up libpcre2-posix3:arm64 (10.46-1) ... 729s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 729s Setting up libhwasan0:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libasan8:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libtsan2:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libisl23:arm64 (0.27-1) ... 729s Setting up libcc1-0:arm64 (15.2.0-5ubuntu1) ... 729s Setting up liblsan0:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libitm1:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libblkid-dev:arm64 (2.41-4ubuntu4) ... 729s Setting up cpp-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 729s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 729s Setting up girepository-tools:arm64 (2.86.0-2) ... 729s Setting up libgcc-15-dev:arm64 (15.2.0-5ubuntu1) ... 729s Setting up libpcre2-dev:arm64 (10.46-1) ... 729s Setting up libselinux1-dev:arm64 (3.8.1-1build1) ... 729s Setting up pkgconf:arm64 (1.8.1-4build1) ... 729s Setting up cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 729s Setting up libstdc++-15-dev:arm64 (15.2.0-5ubuntu1) ... 729s Setting up cpp-15 (15.2.0-5ubuntu1) ... 729s Setting up cpp (4:15.2.0-4ubuntu1) ... 729s Setting up libmount-dev:arm64 (2.41-4ubuntu4) ... 729s Setting up libglib2.0-dev-bin (2.86.0-2) ... 729s Setting up libgio-2.0-dev:arm64 (2.86.0-2) ... 729s Setting up gcc-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 729s Setting up gcc-15 (15.2.0-5ubuntu1) ... 729s Setting up g++-15-aarch64-linux-gnu (15.2.0-5ubuntu1) ... 729s Setting up g++-15 (15.2.0-5ubuntu1) ... 729s Setting up gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 729s Setting up gcc (4:15.2.0-4ubuntu1) ... 729s Setting up g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 729s Setting up g++ (4:15.2.0-4ubuntu1) ... 729s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 729s Setting up build-essential (12.12ubuntu1) ... 729s Processing triggers for install-info (7.1.1-1ubuntu1) ... 730s Processing triggers for libc-bin (2.42-0ubuntu3) ... 730s Processing triggers for man-db (2.13.1-1) ... 731s Processing triggers for libglib2.0-0t64:arm64 (2.86.0-2) ... 731s No schema files found: doing nothing. 731s Setting up libglib2.0-dev:arm64 (2.86.0-2) ... 736s autopkgtest [17:37:19]: test libglib2.0-dev: [----------------------- 737s + debian/tests/build 737s + mode=dynamic 737s + getopt -o --long static -n debian/tests/build -- 737s + getopt_temp= -- 737s + eval set -- -- 737s + set -- -- 737s + true 737s + shift 737s + break 737s + mktemp -d 737s + WORKDIR=/tmp/tmp.WaJzB1i86r 737s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 737s + cd /tmp/tmp.WaJzB1i86r 737s + [ -n ] 737s + CROSS_COMPILE= 737s + cat 737s + cat 737s + cat 737s + cat 737s + cat 737s + cat 737s + cflags= 737s + pcflags= 737s + packages=glib-2.0 737s + pkg-config --cflags --libs glib-2.0 737s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 737s build (glib, dynamic): OK 737s + echo build (glib, dynamic): OK 737s + [ -x glib-dynamic ] 737s + foo=bar ./glib-dynamic 737s + echo run (glib, dynamic): OK 737s + cflags= 737s + pcflags= 737s + packages=gobject-2.0 737s run (glib, dynamic): OK 737s + pkg-config --cflags --libs gobject-2.0 737s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 737s build (gobject, dynamic): OK 737s + echo build (gobject, dynamic): OK 737s + [ -x gobject-dynamic ] 737s + foo=bar ./gobject-dynamic 737s + echo run (gobject, dynamic): OK 737s + cflags= 737s + pcflags= 737s + packages=gio-2.0 737s run (gobject, dynamic): OK 737s + pkg-config --cflags --libs gio-2.0 737s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/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 737s build (gio, dynamic): OK 737s + echo build (gio, dynamic): OK 737s + [ -x gio-dynamic ] 737s + foo=bar ./gio-dynamic 737s + echo run (gio, dynamic): OK 737s + cflags= 737s + pcflags= 737s + packages=gio-unix-2.0 737s run (gio, dynamic): OK 737s + pkg-config --cflags --libs gio-unix-2.0 737s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/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 737s build (gio-unix, dynamic): OK 737s + echo build (gio-unix, dynamic): OK 737s + [ -x gio-unix-dynamic ] 737s + foo=bar ./gio-unix-dynamic 737s + echo run (gio-unix, dynamic): OK 737s + cflags= 737s + pcflags= 737s + packages=gmodule-2.0 737s run (gio-unix, dynamic): OK 737s + pkg-config --cflags --libs gmodule-2.0 737s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 737s build (gmodule, dynamic): OK 737s + echo build (gmodule, dynamic): OK 737s + [ -x gmodule-dynamic ] 737s + foo=bar ./gmodule-dynamic 737s + echo run (gmodule, dynamic): OK 737s + cflags= 737s + pcflags= 737s + packages=gthread-2.0 737s run (gmodule, dynamic): OK 737s + pkg-config --cflags --libs gthread-2.0 737s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 738s build (gthread, dynamic): OK 738s + echo build (gthread, dynamic): OK 738s + [ -x gthread-dynamic ] 738s + foo=bar ./gthread-dynamic 738s + echo run (gthread, dynamic): OK 738s + rm -rf /tmp/tmp.WaJzB1i86r 738s run (gthread, dynamic): OK 738s + debian/tests/build-static 738s + mode=dynamic 738s + getopt -o --long static -n debian/tests/build -- --static 738s + getopt_temp= --static -- 738s + eval set -- --static -- 738s + set -- --static -- 738s + true 738s + mode=static 738s + shift 738s + continue 738s + true 738s + shift 738s + break 738s + mktemp -d 738s + WORKDIR=/tmp/tmp.uBqYd6CMZ0 738s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 738s + cd /tmp/tmp.uBqYd6CMZ0 738s + [ -n ] 738s + CROSS_COMPILE= 738s + cat 738s + cat 738s + cat 738s + cat 738s + cat 738s + cat 738s + cflags= 738s + pcflags= 738s + packages=glib-2.0 738s + cflags=-static 738s + pcflags=--static 738s + pkg-config --static --cflags --libs glib-2.0 738s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 738s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 738s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s build (glib, static): OK 738s + echo build (glib, static): OK 738s + [ -x glib-static ] 738s + foo=bar ./glib-static 738s + echo run (glib, static): OKrun (glib, static): OK 738s 738s + cflags= 738s + pcflags= 738s + packages=gobject-2.0 738s + cflags=-static 738s + pcflags=--static 738s + pkg-config --static --cflags --libs gobject-2.0 738s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 738s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 738s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s build (gobject, static): OK 738s + echo build (gobject, static): OK 738s + [ -x gobject-static ] 738s + foo=bar ./gobject-static 738s run (gobject, static): OK 738s + echo run (gobject, static): OK 738s + cflags= 738s + pcflags= 738s + packages=gio-2.0 738s + cflags=-static 738s + pcflags=--static 738s + continue 738s + cflags= 738s + pcflags= 738s + packages=gio-unix-2.0 738s + cflags=-static 738s + pcflags=--static 738s + continue 738s + cflags= 738s + pcflags= 738s + packages=gmodule-2.0 738s + cflags=-static 738s + pcflags=--static 738s + pkg-config --static --cflags --libs gmodule-2.0 738s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 738s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 738s (.text+0x5c8): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 738s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s build (gmodule, static): OK 738s + echo build (gmodule, static): OK 738s + [ -x gmodule-static ] 738s + foo=bar ./gmodule-static 738s run (gmodule, static): OK 738s + echo run (gmodule, static): OK 738s + cflags= 738s + pcflags= 738s + packages=gthread-2.0 738s + cflags=-static 738s + pcflags=--static 738s + pkg-config --static --cflags --libs gthread-2.0 738s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 738s /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 738s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s /usr/bin/ld: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 738s build (gthread, static): OK 738s + echo build (gthread, static): OK 738s + [ -x gthread-static ] 738s + foo=bar ./gthread-static 738s run (gthread, static): OK 738s + echo run (gthread, static): OK 738s + rm -rf /tmp/tmp.uBqYd6CMZ0 738s + debian/tests/girepository-tools 738s + cd /tmp/autopkgtest.gF1VIw/autopkgtest_tmp 738s + dpkg-architecture -qDEB_HOST_GNU_TYPE 738s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 738s + dpkg-architecture -qDEB_HOST_MULTIARCH 738s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 738s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 739s typelib: GLib-2.0 739s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 739s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 739s + debian/tests/libgio-2.0-dev-bin 739s + gdbus-codegen --help 739s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 739s [--c-namespace NAMESPACE] [--c-generate-object-manager] 739s [--c-generate-autocleanup {none,objects,all}] 739s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 739s [--generate-rst OUTFILES] [--pragma-once] 739s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 739s [--glib-min-required VERSION] 739s [--glib-max-allowed VERSION] 739s [--symbol-decorator SYMBOL_DECORATOR] 739s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 739s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 739s [--generate-c-code OUTFILES | --header | --body | 739s --interface-info-header | --interface-info-body] 739s [--output FILE | --output-directory OUTDIR] 739s FILE [FILE ...] 739s 739s D-Bus code and documentation generator 739s 739s positional arguments: 739s FILE D-Bus introspection XML file 739s 739s options: 739s -h, --help show this help message and exit 739s --interface-prefix PREFIX 739s String to strip from D-Bus interface names for code 739s and docs 739s --c-namespace NAMESPACE 739s The namespace to use for generated C code 739s --c-generate-object-manager 739s Generate a GDBusObjectManagerClient subclass when 739s generating C code 739s --c-generate-autocleanup {none,objects,all} 739s Generate autocleanup support 739s --generate-docbook OUTFILES 739s Generate Docbook in OUTFILES-org.Project.IFace.xml 739s --generate-md OUTFILES 739s Generate Markdown in OUTFILES-org.Project.IFace.md 739s --generate-rst OUTFILES 739s Generate reStructuredText in OUTFILES- 739s org.Project.IFace.rst 739s --pragma-once Use "pragma once" as the inclusion guard 739s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 739s Add annotation (may be used several times) 739s --glib-min-required VERSION 739s Minimum version of GLib to be supported by the 739s outputted code (default: 2.30) 739s --glib-max-allowed VERSION 739s Maximum version of GLib to be used by the outputted 739s code (default: current GLib version) 739s --symbol-decorator SYMBOL_DECORATOR 739s Macro used to decorate a symbol in the outputted 739s header, possibly to export symbols 739s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 739s Additional header required for decorator specified by 739s --symbol-decorator 739s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 739s Additional define required for decorator specified by 739s --symbol-decorator 739s --generate-c-code OUTFILES 739s Generate C code in OUTFILES.[ch] 739s --header Generate C headers 739s --body Generate C code 739s --interface-info-header 739s Generate GDBusInterfaceInfo C header 739s --interface-info-body 739s Generate GDBusInterfaceInfo C code 739s --output FILE Write output into the specified file 739s --output-directory OUTDIR 739s Location to output generated files 739s + glib-compile-resources --version 739s 2.86.0 739s + glib-genmarshal --version 739s glib-genmarshal version 2.86.0 739s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 739s You may redistribute copies of glib-genmarshal under the terms of 739s the GNU General Public License which can be found in the 739s GLib source package. Sources, examples and contact 739s information are available at http://www.gtk.org 739s + glib-gettextize --version 739s + glib-mkenums --version 739s /usr/bin/glib-gettextize (GNU glib) 2.86.0 739s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 739s This is free software; see the source for copying conditions. There is NO 739s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 739s Written by Ulrich Drepper 739s glib-mkenums version 2.86.0 739s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 739s You may redistribute copies of glib-mkenums under the terms of 739s the GNU General Public License which can be found in the 739s GLib source package. Sources, examples and contact 739s information are available at http://www.gtk.org 739s + gobject-query tree 739s GObject 739s + gtester --version 739s gtester version 2.86.0 739s + gtester-report --version 739s gtester-report (GLib utils) version 2.86.0. 739s + cd /tmp/autopkgtest.gF1VIw/autopkgtest_tmp 739s + dpkg-architecture -qDEB_HOST_MULTIARCH 739s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 739s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 739s typelib: GLib-2.0 739s + gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 739s + gi-decompile-typelib -o GLib.gir GLib.typelib 739s autopkgtest [17:37:22]: test libglib2.0-dev: -----------------------] 740s autopkgtest [17:37:23]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 740s libglib2.0-dev PASS (superficial) 740s autopkgtest [17:37:23]: test installed-tests: preparing testbed 761s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 819s autopkgtest [17:38:42]: testbed dpkg architecture: arm64 819s autopkgtest [17:38:42]: testbed apt version: 3.1.6ubuntu2 819s autopkgtest [17:38:42]: @@@@@@@@@@@@@@@@@@@@ test bed setup 820s autopkgtest [17:38:43]: testbed release detected to be: resolute 820s autopkgtest [17:38:43]: updating testbed package index (apt update) 821s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 821s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 821s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 821s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 821s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 821s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 821s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 821s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 821s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 821s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 822s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 822s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 822s Fetched 831 kB in 1s (797 kB/s) 822s Reading package lists... 823s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 823s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 823s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 824s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 824s Reading package lists... 824s Reading package lists... 824s Building dependency tree... 824s Reading state information... 825s Calculating upgrade... 825s The following packages will be upgraded: 825s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 825s libpython3-stdlib lto-disabled-list python3 python3-minimal 825s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 825s Need to get 2671 kB of archives. 825s After this operation, 66.6 kB of additional disk space will be used. 825s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 825s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 825s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 825s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 826s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 826s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 826s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 826s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 826s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 826s dpkg-preconfigure: unable to re-open stdin: No such file or directory 826s Fetched 2671 kB in 1s (2891 kB/s) 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 ... 83359 files and directories currently installed.) 827s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 827s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 827s Setting up python3-minimal (3.13.7-2) ... 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 ... 83359 files and directories currently installed.) 827s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 827s running python pre-rtupdate hooks for python3.13... 827s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 827s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 827s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 827s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 827s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 827s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 828s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 828s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 828s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 828s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 828s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 828s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 828s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 828s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 828s Unpacking lto-disabled-list (71) over (69) ... 828s Setting up lto-disabled-list (71) ... 828s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 828s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 828s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 828s Setting up apt (3.1.8ubuntu1) ... 829s Setting up python3 (3.13.7-2) ... 829s running python rtupdate hooks for python3.13... 829s running python post-rtupdate hooks for python3.13... 829s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 829s Setting up flash-kernel (3.109ubuntu7) ... 830s flash-kernel: deferring update (trigger activated) 830s Processing triggers for libc-bin (2.42-0ubuntu3) ... 830s Processing triggers for man-db (2.13.1-1) ... 831s Processing triggers for initramfs-tools (0.150ubuntu3) ... 832s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 848s System running in EFI mode, skipping. 848s Processing triggers for flash-kernel (3.109ubuntu7) ... 848s System running in EFI mode, skipping. 848s autopkgtest [17:39:11]: upgrading testbed (apt dist-upgrade and autopurge) 849s Reading package lists... 849s Building dependency tree... 849s Reading state information... 849s Calculating upgrade... 850s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 850s Reading package lists... 850s Building dependency tree... 850s Reading state information... 850s Solving dependencies... 851s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 851s autopkgtest [17:39:14]: rebooting testbed after setup commands that affected boot 883s Reading package lists... 883s Building dependency tree... 883s Reading state information... 883s Solving dependencies... 883s The following NEW packages will be installed: 883s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 883s gnome-desktop-testing libdrm-amdgpu1 libfontenc1 libgbm1 libgio-2.0-dev-bin 883s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 883s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 883s libpixman-1-0 libsm6 libunwind8 libvulkan1 libx11-xcb1 libxaw7 libxcb-dri3-0 883s libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 libxcb-sync1 883s libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 883s libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium native-architecture 883s python3-dbusmock python3-packaging tzdata-legacy x11-common x11-xkb-utils 883s xserver-common xvfb 884s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 884s Need to get 18.7 MB of archives. 884s After this operation, 108 MB of additional disk space will be used. 884s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 dbus-x11 arm64 1.16.2-2ubuntu2 [23.1 kB] 884s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 desktop-file-utils arm64 0.28-1 [53.6 kB] 884s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.0-2 [865 kB] 884s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6 [2140 B] 884s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-2.0-0 arm64 2.86.0-2 [73.4 kB] 884s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.0-2 [104 kB] 884s Get:7 http://ftpmaster.internal/ubuntu resolute/universe arm64 gnome-desktop-testing arm64 2021.1-4 [16.2 kB] 884s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.125-1 [21.6 kB] 884s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libfontenc1 arm64 1:1.1.8-1build1 [13.9 kB] 884s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libx11-xcb1 arm64 2:1.8.12-1build1 [8216 B] 884s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-dri3-0 arm64 1.17.0-2build1 [8120 B] 884s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-present0 arm64 1.17.0-2build1 [6560 B] 884s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-randr0 arm64 1.17.0-2build1 [20.2 kB] 884s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-sync1 arm64 1.17.0-2build1 [10.4 kB] 884s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-xfixes0 arm64 1.17.0-2build1 [11.4 kB] 884s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 libxshmfence1 arm64 1.3.3-1 [5378 B] 884s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 mesa-libgallium arm64 25.2.3-1ubuntu1 [12.1 MB] 885s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libgbm1 arm64 25.2.3-1ubuntu1 [34.4 kB] 885s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-packaging all 25.0-1 [52.8 kB] 885s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.0-2 [128 kB] 885s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 libvulkan1 arm64 1.4.321.0-1 [169 kB] 885s Get:22 http://ftpmaster.internal/ubuntu resolute/main arm64 libgl1-mesa-dri arm64 25.2.3-1ubuntu1 [34.9 kB] 885s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-bin arm64 2.86.0-2 [97.7 kB] 885s Get:24 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev-bin arm64 2.86.0-2 [18.2 kB] 885s Get:25 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-dbusmock all 0.37.1-1 [90.7 kB] 885s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 tzdata-legacy all 2025b-3ubuntu1 [99.3 kB] 885s Get:27 http://ftpmaster.internal/ubuntu resolute/universe arm64 libglib2.0-tests arm64 2.86.0-2 [2229 kB] 885s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-glx0 arm64 1.17.0-2build1 [27.8 kB] 885s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-shm0 arm64 1.17.0-2build1 [6234 B] 885s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 libxxf86vm1 arm64 1:1.1.4-1build4 [9130 B] 885s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 libglx-mesa0 arm64 25.2.3-1ubuntu1 [110 kB] 885s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 x11-common all 1:7.7+24ubuntu1 [22.4 kB] 885s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 libice6 arm64 2:1.1.1-1 [42.3 kB] 885s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libpixman-1-0 arm64 0.44.0-3 [197 kB] 885s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libsm6 arm64 2:1.2.6-1 [16.6 kB] 885s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libunwind8 arm64 1.8.1-0.1ubuntu1 [64.7 kB] 885s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libxt6t64 arm64 1:1.2.1-1.3 [168 kB] 885s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 libxmu6 arm64 2:1.1.3-3build3 [50.5 kB] 885s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 libxpm4 arm64 1:3.5.17-1build2 [35.1 kB] 885s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 libxaw7 arm64 2:1.0.16-1 [184 kB] 885s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libxfont2 arm64 1:2.0.6-1build1 [88.7 kB] 885s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 libxkbfile1 arm64 1:1.1.0-1build4 [69.4 kB] 885s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 libxrender1 arm64 1:0.9.12-1 [19.5 kB] 885s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 libxrandr2 arm64 2:1.5.4-1 [19.6 kB] 885s Get:45 http://ftpmaster.internal/ubuntu resolute/main arm64 x11-xkb-utils arm64 7.7+9 [165 kB] 885s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 xserver-common all 2:21.1.18-1ubuntu1 [34.6 kB] 885s Get:47 http://ftpmaster.internal/ubuntu resolute/main arm64 libglvnd0 arm64 1.7.0-1build2 [59.2 kB] 885s Get:48 http://ftpmaster.internal/ubuntu resolute/main arm64 libglx0 arm64 1.7.0-1build2 [34.5 kB] 885s Get:49 http://ftpmaster.internal/ubuntu resolute/main arm64 libgl1 arm64 1.7.0-1build2 [104 kB] 885s Get:50 http://ftpmaster.internal/ubuntu resolute/universe arm64 xvfb arm64 2:21.1.18-1ubuntu1 [869 kB] 886s Fetched 18.7 MB in 2s (9758 kB/s) 886s Selecting previously unselected package dbus-x11. 886s (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 ... 83359 files and directories currently installed.) 886s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_arm64.deb ... 886s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 886s Selecting previously unselected package desktop-file-utils. 886s Preparing to unpack .../01-desktop-file-utils_0.28-1_arm64.deb ... 886s Unpacking desktop-file-utils (0.28-1) ... 886s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 886s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.0-2_arm64.deb ... 886s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 886s Selecting previously unselected package native-architecture. 886s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 886s Unpacking native-architecture (0.2.6) ... 886s Selecting previously unselected package libgirepository-2.0-0:arm64. 886s Preparing to unpack .../04-libgirepository-2.0-0_2.86.0-2_arm64.deb ... 886s Unpacking libgirepository-2.0-0:arm64 (2.86.0-2) ... 886s Selecting previously unselected package girepository-tools:arm64. 886s Preparing to unpack .../05-girepository-tools_2.86.0-2_arm64.deb ... 886s Unpacking girepository-tools:arm64 (2.86.0-2) ... 886s Selecting previously unselected package gnome-desktop-testing. 886s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_arm64.deb ... 886s Unpacking gnome-desktop-testing (2021.1-4) ... 886s Selecting previously unselected package libdrm-amdgpu1:arm64. 886s Preparing to unpack .../07-libdrm-amdgpu1_2.4.125-1_arm64.deb ... 886s Unpacking libdrm-amdgpu1:arm64 (2.4.125-1) ... 886s Selecting previously unselected package libfontenc1:arm64. 886s Preparing to unpack .../08-libfontenc1_1%3a1.1.8-1build1_arm64.deb ... 886s Unpacking libfontenc1:arm64 (1:1.1.8-1build1) ... 886s Selecting previously unselected package libx11-xcb1:arm64. 886s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.12-1build1_arm64.deb ... 886s Unpacking libx11-xcb1:arm64 (2:1.8.12-1build1) ... 886s Selecting previously unselected package libxcb-dri3-0:arm64. 886s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2build1_arm64.deb ... 886s Unpacking libxcb-dri3-0:arm64 (1.17.0-2build1) ... 886s Selecting previously unselected package libxcb-present0:arm64. 886s Preparing to unpack .../11-libxcb-present0_1.17.0-2build1_arm64.deb ... 886s Unpacking libxcb-present0:arm64 (1.17.0-2build1) ... 886s Selecting previously unselected package libxcb-randr0:arm64. 886s Preparing to unpack .../12-libxcb-randr0_1.17.0-2build1_arm64.deb ... 886s Unpacking libxcb-randr0:arm64 (1.17.0-2build1) ... 887s Selecting previously unselected package libxcb-sync1:arm64. 887s Preparing to unpack .../13-libxcb-sync1_1.17.0-2build1_arm64.deb ... 887s Unpacking libxcb-sync1:arm64 (1.17.0-2build1) ... 887s Selecting previously unselected package libxcb-xfixes0:arm64. 887s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2build1_arm64.deb ... 887s Unpacking libxcb-xfixes0:arm64 (1.17.0-2build1) ... 887s Selecting previously unselected package libxshmfence1:arm64. 887s Preparing to unpack .../15-libxshmfence1_1.3.3-1_arm64.deb ... 887s Unpacking libxshmfence1:arm64 (1.3.3-1) ... 887s Selecting previously unselected package mesa-libgallium:arm64. 887s Preparing to unpack .../16-mesa-libgallium_25.2.3-1ubuntu1_arm64.deb ... 887s Unpacking mesa-libgallium:arm64 (25.2.3-1ubuntu1) ... 887s Selecting previously unselected package libgbm1:arm64. 887s Preparing to unpack .../17-libgbm1_25.2.3-1ubuntu1_arm64.deb ... 887s Unpacking libgbm1:arm64 (25.2.3-1ubuntu1) ... 887s Selecting previously unselected package python3-packaging. 887s Preparing to unpack .../18-python3-packaging_25.0-1_all.deb ... 887s Unpacking python3-packaging (25.0-1) ... 887s Selecting previously unselected package libgio-2.0-dev-bin. 887s Preparing to unpack .../19-libgio-2.0-dev-bin_2.86.0-2_arm64.deb ... 887s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 887s Selecting previously unselected package libvulkan1:arm64. 887s Preparing to unpack .../20-libvulkan1_1.4.321.0-1_arm64.deb ... 887s Unpacking libvulkan1:arm64 (1.4.321.0-1) ... 887s Selecting previously unselected package libgl1-mesa-dri:arm64. 887s Preparing to unpack .../21-libgl1-mesa-dri_25.2.3-1ubuntu1_arm64.deb ... 887s Unpacking libgl1-mesa-dri:arm64 (25.2.3-1ubuntu1) ... 887s Selecting previously unselected package libglib2.0-bin. 887s Preparing to unpack .../22-libglib2.0-bin_2.86.0-2_arm64.deb ... 887s Unpacking libglib2.0-bin (2.86.0-2) ... 887s Selecting previously unselected package libglib2.0-dev-bin. 887s Preparing to unpack .../23-libglib2.0-dev-bin_2.86.0-2_arm64.deb ... 887s Unpacking libglib2.0-dev-bin (2.86.0-2) ... 887s Selecting previously unselected package python3-dbusmock. 887s Preparing to unpack .../24-python3-dbusmock_0.37.1-1_all.deb ... 887s Unpacking python3-dbusmock (0.37.1-1) ... 887s Selecting previously unselected package tzdata-legacy. 887s Preparing to unpack .../25-tzdata-legacy_2025b-3ubuntu1_all.deb ... 887s Unpacking tzdata-legacy (2025b-3ubuntu1) ... 887s Selecting previously unselected package libglib2.0-tests. 887s Preparing to unpack .../26-libglib2.0-tests_2.86.0-2_arm64.deb ... 887s Unpacking libglib2.0-tests (2.86.0-2) ... 887s Selecting previously unselected package libxcb-glx0:arm64. 887s Preparing to unpack .../27-libxcb-glx0_1.17.0-2build1_arm64.deb ... 887s Unpacking libxcb-glx0:arm64 (1.17.0-2build1) ... 887s Selecting previously unselected package libxcb-shm0:arm64. 888s Preparing to unpack .../28-libxcb-shm0_1.17.0-2build1_arm64.deb ... 888s Unpacking libxcb-shm0:arm64 (1.17.0-2build1) ... 888s Selecting previously unselected package libxxf86vm1:arm64. 888s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_arm64.deb ... 888s Unpacking libxxf86vm1:arm64 (1:1.1.4-1build4) ... 888s Selecting previously unselected package libglx-mesa0:arm64. 888s Preparing to unpack .../30-libglx-mesa0_25.2.3-1ubuntu1_arm64.deb ... 888s Unpacking libglx-mesa0:arm64 (25.2.3-1ubuntu1) ... 888s Selecting previously unselected package x11-common. 888s Preparing to unpack .../31-x11-common_1%3a7.7+24ubuntu1_all.deb ... 888s Unpacking x11-common (1:7.7+24ubuntu1) ... 888s Selecting previously unselected package libice6:arm64. 888s Preparing to unpack .../32-libice6_2%3a1.1.1-1_arm64.deb ... 888s Unpacking libice6:arm64 (2:1.1.1-1) ... 888s Selecting previously unselected package libpixman-1-0:arm64. 888s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_arm64.deb ... 888s Unpacking libpixman-1-0:arm64 (0.44.0-3) ... 888s Selecting previously unselected package libsm6:arm64. 888s Preparing to unpack .../34-libsm6_2%3a1.2.6-1_arm64.deb ... 888s Unpacking libsm6:arm64 (2:1.2.6-1) ... 888s Selecting previously unselected package libunwind8:arm64. 888s Preparing to unpack .../35-libunwind8_1.8.1-0.1ubuntu1_arm64.deb ... 888s Unpacking libunwind8:arm64 (1.8.1-0.1ubuntu1) ... 888s Selecting previously unselected package libxt6t64:arm64. 888s Preparing to unpack .../36-libxt6t64_1%3a1.2.1-1.3_arm64.deb ... 888s Unpacking libxt6t64:arm64 (1:1.2.1-1.3) ... 888s Selecting previously unselected package libxmu6:arm64. 888s Preparing to unpack .../37-libxmu6_2%3a1.1.3-3build3_arm64.deb ... 888s Unpacking libxmu6:arm64 (2:1.1.3-3build3) ... 888s Selecting previously unselected package libxpm4:arm64. 888s Preparing to unpack .../38-libxpm4_1%3a3.5.17-1build2_arm64.deb ... 888s Unpacking libxpm4:arm64 (1:3.5.17-1build2) ... 888s Selecting previously unselected package libxaw7:arm64. 888s Preparing to unpack .../39-libxaw7_2%3a1.0.16-1_arm64.deb ... 888s Unpacking libxaw7:arm64 (2:1.0.16-1) ... 888s Selecting previously unselected package libxfont2:arm64. 888s Preparing to unpack .../40-libxfont2_1%3a2.0.6-1build1_arm64.deb ... 888s Unpacking libxfont2:arm64 (1:2.0.6-1build1) ... 888s Selecting previously unselected package libxkbfile1:arm64. 888s Preparing to unpack .../41-libxkbfile1_1%3a1.1.0-1build4_arm64.deb ... 888s Unpacking libxkbfile1:arm64 (1:1.1.0-1build4) ... 888s Selecting previously unselected package libxrender1:arm64. 888s Preparing to unpack .../42-libxrender1_1%3a0.9.12-1_arm64.deb ... 888s Unpacking libxrender1:arm64 (1:0.9.12-1) ... 888s Selecting previously unselected package libxrandr2:arm64. 888s Preparing to unpack .../43-libxrandr2_2%3a1.5.4-1_arm64.deb ... 888s Unpacking libxrandr2:arm64 (2:1.5.4-1) ... 888s Selecting previously unselected package x11-xkb-utils. 888s Preparing to unpack .../44-x11-xkb-utils_7.7+9_arm64.deb ... 888s Unpacking x11-xkb-utils (7.7+9) ... 888s Selecting previously unselected package xserver-common. 888s Preparing to unpack .../45-xserver-common_2%3a21.1.18-1ubuntu1_all.deb ... 888s Unpacking xserver-common (2:21.1.18-1ubuntu1) ... 888s Selecting previously unselected package libglvnd0:arm64. 888s Preparing to unpack .../46-libglvnd0_1.7.0-1build2_arm64.deb ... 888s Unpacking libglvnd0:arm64 (1.7.0-1build2) ... 888s Selecting previously unselected package libglx0:arm64. 888s Preparing to unpack .../47-libglx0_1.7.0-1build2_arm64.deb ... 888s Unpacking libglx0:arm64 (1.7.0-1build2) ... 888s Selecting previously unselected package libgl1:arm64. 888s Preparing to unpack .../48-libgl1_1.7.0-1build2_arm64.deb ... 888s Unpacking libgl1:arm64 (1.7.0-1build2) ... 888s Selecting previously unselected package xvfb. 888s Preparing to unpack .../49-xvfb_2%3a21.1.18-1ubuntu1_arm64.deb ... 888s Unpacking xvfb (2:21.1.18-1ubuntu1) ... 888s Setting up gnome-desktop-testing (2021.1-4) ... 888s Setting up libxcb-dri3-0:arm64 (1.17.0-2build1) ... 888s Setting up libpixman-1-0:arm64 (0.44.0-3) ... 888s Setting up libx11-xcb1:arm64 (2:1.8.12-1build1) ... 888s Setting up native-architecture (0.2.6) ... 888s Setting up libxcb-xfixes0:arm64 (1.17.0-2build1) ... 888s Setting up desktop-file-utils (0.28-1) ... 888s Setting up libxpm4:arm64 (1:3.5.17-1build2) ... 888s Setting up libxrender1:arm64 (1:0.9.12-1) ... 888s Setting up libgirepository-2.0-0:arm64 (2.86.0-2) ... 888s Setting up libglvnd0:arm64 (1.7.0-1build2) ... 888s Setting up libxcb-glx0:arm64 (1.17.0-2build1) ... 888s Setting up x11-common (1:7.7+24ubuntu1) ... 889s Setting up libglib2.0-bin (2.86.0-2) ... 889s Setting up libxcb-shm0:arm64 (1.17.0-2build1) ... 889s Setting up python3-dbusmock (0.37.1-1) ... 889s Setting up libunwind8:arm64 (1.8.1-0.1ubuntu1) ... 889s Setting up tzdata-legacy (2025b-3ubuntu1) ... 889s Setting up libxxf86vm1:arm64 (1:1.1.4-1build4) ... 889s Setting up libxcb-present0:arm64 (1.17.0-2build1) ... 889s Setting up libfontenc1:arm64 (1:1.1.8-1build1) ... 889s Setting up python3-packaging (25.0-1) ... 889s Setting up libxcb-sync1:arm64 (1.17.0-2build1) ... 889s Setting up libxrandr2:arm64 (2:1.5.4-1) ... 889s Setting up libvulkan1:arm64 (1.4.321.0-1) ... 889s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.0-2) ... 889s Setting up libxshmfence1:arm64 (1.3.3-1) ... 889s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 889s Setting up libxcb-randr0:arm64 (1.17.0-2build1) ... 889s Setting up libxkbfile1:arm64 (1:1.1.0-1build4) ... 889s Setting up libxfont2:arm64 (1:2.0.6-1build1) ... 889s Setting up libdrm-amdgpu1:arm64 (2.4.125-1) ... 889s Setting up libice6:arm64 (2:1.1.1-1) ... 889s Setting up mesa-libgallium:arm64 (25.2.3-1ubuntu1) ... 889s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 889s Setting up girepository-tools:arm64 (2.86.0-2) ... 889s Setting up libgbm1:arm64 (25.2.3-1ubuntu1) ... 889s Setting up libgl1-mesa-dri:arm64 (25.2.3-1ubuntu1) ... 889s Setting up libsm6:arm64 (2:1.2.6-1) ... 889s Setting up libglib2.0-dev-bin (2.86.0-2) ... 889s Setting up libglx-mesa0:arm64 (25.2.3-1ubuntu1) ... 889s Setting up libglx0:arm64 (1.7.0-1build2) ... 889s Setting up libgl1:arm64 (1.7.0-1build2) ... 889s Setting up libxt6t64:arm64 (1:1.2.1-1.3) ... 889s Setting up libglib2.0-tests (2.86.0-2) ... 889s Setting up libxmu6:arm64 (2:1.1.3-3build3) ... 889s Setting up libxaw7:arm64 (2:1.0.16-1) ... 889s Setting up x11-xkb-utils (7.7+9) ... 889s Setting up xserver-common (2:21.1.18-1ubuntu1) ... 889s Setting up xvfb (2:21.1.18-1ubuntu1) ... 889s Processing triggers for man-db (2.13.1-1) ... 890s Processing triggers for libc-bin (2.42-0ubuntu3) ... 895s autopkgtest [17:39:58]: test installed-tests: [----------------------- 895s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 895s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 895s group entry: ubuntu:x:1000: 895s Environment: 895s ADTTMP=/tmp/autopkgtest.gF1VIw/autopkgtest_tmp 895s ADT_ARTIFACTS=/tmp/autopkgtest.gF1VIw/installed-tests-artifacts 895s ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 895s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.gF1VIw/installed-tests-artifacts 895s AUTOPKGTEST_TESTBED_ARCH=arm64 895s AUTOPKGTEST_TEST_ARCH=arm64 895s AUTOPKGTEST_TMP=/tmp/autopkgtest.gF1VIw/autopkgtest_tmp 895s DEBIAN_FRONTEND=noninteractive 895s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 895s DEB_BUILD_OPTIONS=parallel=2 895s GIO_USE_VFS=local 895s GIO_USE_VOLUME_MONITOR=unix 895s HOME=/home/ubuntu 895s LANG=C.UTF-8 895s LOGNAME=ubuntu 895s MAIL=/var/mail/ubuntu 895s OLDPWD=/home/ubuntu 895s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 895s PWD=/tmp/autopkgtest.gF1VIw/build.kH3/src 895s SHELL=/bin/bash 895s SHLVL=1 895s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.gF1VIw/wrapper.sh --artifacts=/tmp/autopkgtest.gF1VIw/installed-tests-artifacts --chdir=/tmp/autopkgtest.gF1VIw/build.kH3/src --env=AUTOPKGTEST_TESTBED_ARCH=arm64 --env=AUTOPKGTEST_TEST_ARCH=arm64 --env=DEB_BUILD_OPTIONS=parallel=2 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.gF1VIw/installed-tests-stderr --stdout=/tmp/autopkgtest.gF1VIw/installed-tests-stdout --tmp=/tmp/autopkgtest.gF1VIw/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 --make-executable=/tmp/autopkgtest.gF1VIw/build.kH3/src/debian/tests/installed-tests -- /tmp/autopkgtest.gF1VIw/build.kH3/src/debian/tests/installed-tests 895s SUDO_GID=1000 895s SUDO_UID=1000 895s SUDO_USER=ubuntu 895s TERM=linux 895s USER=ubuntu 895s XDG_RUNTIME_DIR=/tmp/autopkgtest.gF1VIw/autopkgtest_tmp 895s http_proxy=http://squid.internal:3128/ 895s https_proxy=http://squid.internal:3128/ 895s 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 895s run-with-locales: de_DE=ISO-8859-1... 895s Character set: ISO-8859-1 895s Source file: de_DE 895s Output: /tmp/tmp.dwyatJYD6c/de_DE 895s run-with-locales: de_DE.utf8... 895s Character set: UTF-8 895s Source file: de_DE 895s Output: /tmp/tmp.dwyatJYD6c/de_DE.utf8 897s run-with-locales: de_DE@euro.utf8... 897s Character set: UTF-8 897s Source file: de_DE@euro 897s Output: /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8 899s run-with-locales: el_GR.utf8... 899s Character set: UTF-8 899s Source file: el_GR 899s Output: /tmp/tmp.dwyatJYD6c/el_GR.utf8 901s run-with-locales: en_GB=ISO-8859-1... 901s Character set: ISO-8859-1 901s Source file: en_GB 901s Output: /tmp/tmp.dwyatJYD6c/en_GB 902s run-with-locales: en_GB.utf8... 902s Character set: UTF-8 902s Source file: en_GB 902s Output: /tmp/tmp.dwyatJYD6c/en_GB.utf8 904s run-with-locales: en_US=ISO-8859-1... 904s Character set: ISO-8859-1 904s Source file: en_US 904s Output: /tmp/tmp.dwyatJYD6c/en_US 904s run-with-locales: en_US.utf8... 904s Character set: UTF-8 904s Source file: en_US 904s Output: /tmp/tmp.dwyatJYD6c/en_US.utf8 906s run-with-locales: es_ES.utf8... 906s Character set: UTF-8 906s Source file: es_ES 906s Output: /tmp/tmp.dwyatJYD6c/es_ES.utf8 908s run-with-locales: fa_IR=UTF-8... 908s Character set: UTF-8 908s Source file: fa_IR 908s Output: /tmp/tmp.dwyatJYD6c/fa_IR 910s run-with-locales: fa_IR.utf8... 910s Character set: UTF-8 910s Source file: fa_IR 910s Output: /tmp/tmp.dwyatJYD6c/fa_IR.utf8 912s run-with-locales: fr_FR.utf8... 912s Character set: UTF-8 912s Source file: fr_FR 912s Output: /tmp/tmp.dwyatJYD6c/fr_FR.utf8 914s run-with-locales: hr_HR.utf8... 914s Character set: UTF-8 914s Source file: hr_HR 914s Output: /tmp/tmp.dwyatJYD6c/hr_HR.utf8 916s run-with-locales: ja_JP.utf8... 916s Character set: UTF-8 916s Source file: ja_JP 916s Output: /tmp/tmp.dwyatJYD6c/ja_JP.utf8 917s run-with-locales: ja_JP.EUC-JP... 917s Character set: EUC-JP 917s Source file: ja_JP 917s Output: /tmp/tmp.dwyatJYD6c/ja_JP.eucjp 917s run-with-locales: lt_LT.utf8... 917s Character set: UTF-8 917s Source file: lt_LT 917s Output: /tmp/tmp.dwyatJYD6c/lt_LT.utf8 919s run-with-locales: pl_PL=ISO-8859-2... 919s Character set: ISO-8859-2 919s Source file: pl_PL 919s Output: /tmp/tmp.dwyatJYD6c/pl_PL 920s run-with-locales: pl_PL.ISO-8859-2... 920s Character set: ISO-8859-2 920s Source file: pl_PL 920s Output: /tmp/tmp.dwyatJYD6c/pl_PL.iso88592 920s run-with-locales: pl_PL.utf8... 920s Character set: UTF-8 920s Source file: pl_PL 920s Output: /tmp/tmp.dwyatJYD6c/pl_PL.utf8 922s run-with-locales: ru_RU=ISO-8859-5... 922s Character set: ISO-8859-5 922s Source file: ru_RU 922s Output: /tmp/tmp.dwyatJYD6c/ru_RU 922s run-with-locales: ru_RU.utf8... 922s Character set: UTF-8 922s Source file: ru_RU 922s Output: /tmp/tmp.dwyatJYD6c/ru_RU.utf8 924s run-with-locales: sr_RS=UTF-8... 924s Character set: UTF-8 924s Source file: sr_RS 924s Output: /tmp/tmp.dwyatJYD6c/sr_RS 926s run-with-locales: sr_RS@latin=UTF-8... 926s Character set: UTF-8 926s Source file: sr_RS@latin 926s Output: /tmp/tmp.dwyatJYD6c/sr_RS@latin 928s run-with-locales: sv_SE=ISO-8859-1... 928s Character set: ISO-8859-1 928s Source file: sv_SE 928s Output: /tmp/tmp.dwyatJYD6c/sv_SE 928s run-with-locales: sv_SE.utf8... 928s Character set: UTF-8 928s Source file: sv_SE 928s Output: /tmp/tmp.dwyatJYD6c/sv_SE.utf8 930s run-with-locales: tr_TR=ISO-8859-9... 930s Character set: ISO-8859-9 930s Source file: tr_TR 930s Output: /tmp/tmp.dwyatJYD6c/tr_TR 930s run-with-locales: tr_TR.utf8... 930s Character set: UTF-8 930s Source file: tr_TR 930s Output: /tmp/tmp.dwyatJYD6c/tr_TR.utf8 932s run-with-locales: tt_RU=UTF-8... 932s Character set: UTF-8 932s Source file: tt_RU 932s Output: /tmp/tmp.dwyatJYD6c/tt_RU 934s run-with-locales: tt_RU.utf8... 934s Character set: UTF-8 934s Source file: tt_RU 934s Output: /tmp/tmp.dwyatJYD6c/tt_RU.utf8 936s run-with-locales: tt_RU@iqtelif=UTF-8... 936s Character set: UTF-8 936s Source file: tt_RU@iqtelif 936s Output: /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif 938s /tmp/tmp.dwyatJYD6c 938s /tmp/tmp.dwyatJYD6c/en_US.utf8 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/en_US.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/tt_RU.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/el_GR.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/en_US 938s /tmp/tmp.dwyatJYD6c/en_US/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/en_US/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/en_US/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/en_US/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/en_US/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_US/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_US/LC_NAME 938s /tmp/tmp.dwyatJYD6c/en_US/LC_TIME 938s /tmp/tmp.dwyatJYD6c/en_US/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/en_US/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/en_US/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/en_US/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/en_US/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/ru_RU.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/tr_TR 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_NAME 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_TIME 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/tr_TR/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_NAME 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_TIME 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/ja_JP.eucjp/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/ru_RU 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_NAME 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_TIME 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/ru_RU/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/sv_SE 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_NAME 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_TIME 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/sv_SE/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_NAME 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_TIME 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/sr_RS@latin/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/tt_RU 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_NAME 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_TIME 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/tt_RU/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/de_DE 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_NAME 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_TIME 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/de_DE/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/hr_HR.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/pl_PL 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_NAME 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_TIME 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/pl_PL/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_MESSAGES1..330 938s # Running test: glib/markup-subparser.test 938s ok - glib/markup-subparser.test 938s # Running test: glib/thread-pool.test 938s ok - glib/thread-pool.test 938s # Running test: glib/properties-refcount2.test 938s 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/sv_SE.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/pl_PL.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/tr_TR.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/fr_FR.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/de_DE.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/en_GB 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_NAME 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_TIME 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/en_GB/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/en_GB.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/fa_IR 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_NAME 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_TIME 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/fa_IR/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/fa_IR.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/lt_LT.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_NAME 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_TIME 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/pl_PL.iso88592/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/sr_RS 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_NAME 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_TIME 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/sr_RS/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/es_ES.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_NAME 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_TIME 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/tt_RU@iqtelif/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/de_DE@euro.utf8/LC_COLLATE 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_TELEPHONE 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_IDENTIFICATION 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_NUMERIC 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_CTYPE 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_NAME 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_TIME 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_ADDRESS 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_MEASUREMENT 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_MONETARY 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_PAPER 938s /tmp/tmp.dwyatJYD6c/ja_JP.utf8/LC_COLLATE 938s TAP version 14 938s # random seed: R02S5d43f7cd17f778500161803a7068d0e2 938s 1..14 938s # Start of glib tests 938s # Start of markup tests 938s # Start of subparser tests 938s # Start of success tests 938s ok 1 /glib/markup/subparser/success/0 938s ok 2 /glib/markup/subparser/success/1 938s ok 3 /glib/markup/subparser/success/2 938s ok 4 /glib/markup/subparser/success/3 938s ok 5 /glib/markup/subparser/success/4 938s ok 6 /glib/markup/subparser/success/5 938s ok 7 /glib/markup/subparser/success/6 938s # End of success tests 938s # Start of failure tests 938s ok 8 /glib/markup/subparser/failure/0 938s ok 9 /glib/markup/subparser/failure/1 938s ok 10 /glib/markup/subparser/failure/2 938s ok 11 /glib/markup/subparser/failure/3 938s ok 12 /glib/markup/subparser/failure/4 938s ok 13 /glib/markup/subparser/failure/5 938s ok 14 /glib/markup/subparser/failure/6 938s # End of failure tests 938s # End of subparser tests 938s # End of markup tests 938s # End of glib tests 938s TAP version 14 938s # random seed: R02S83d8a7ec361baf732d1176cbd7ad97d5 938s 1..6 938s # Start of thread_pool tests 938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 938s ok 1 /thread_pool/pool_fail 938s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 938s ok 2 /thread_pool/shared 938s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 938s ok 3 /thread_pool/exclusive 938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 938s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 938s ok 4 /thread_pool/create_shared_after_exclusive 938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 938s ok 5 /thread_pool/create_full 938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 938s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 938s ok 6 /thread_pool/create_exclusive_after_shared 938s # End of thread_pool tests 938s TAP version 14 938s # random seed: R02Se0c6665d755e265b189dc42c88f1876e 938s 1..1 938s # Start of gobject tests 938s # Start of refcount tests 938s # init 0xb668b539ceb0 938s # 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 938s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # . 939s # dispose 0xb668b539ceb0! 939s # 939s ok 1 /gobject/refcount/properties-2 939s # slow test /gobject/refcount/properties-2 executed in 0.90 secs 939s # End of refcount tests 939s # End of gobject tests 939s ok - glib/properties-refcount2.test 939s # Running test: glib/cxx-98.test 939s TAP version 14 939s # random seed: R02Seff0b8186c5347c3e9ea30b234d5f52d 939s 1..2 939s # Start of gtask tests 939s # 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. 939s ok 1 /gtask/name 939s # Start of name tests 939s # 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. 939s ok 2 /gtask/name/macro-wrapper 939s # End of name tests 939s # End of gtask tests 939s ok - glib/cxx-98.test 939s # Running test: glib/gdbus-connection.test 939s TAP version 14 939s # random seed: R02S1ab18c9939d045800f2c090ec7776c5f 939s 1..9 939s # Start of gdbus tests 939s # Start of connection tests 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/bus-failure/.dirs/runtime 939s ok 1 /gdbus/connection/bus-failure 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/basic/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 2 /gdbus/connection/basic 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/life-cycle/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 3 /gdbus/connection/life-cycle 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/send/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 4 /gdbus/connection/send 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signals/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 5 /gdbus/connection/signals 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/signal-match-rules/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 6 /gdbus/connection/signal-match-rules 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/filter/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 7 /gdbus/connection/filter 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/serials/.dirs/runtime 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 8 /gdbus/connection/serials 939s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/home 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/cache 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/system-config2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/config 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/system-data2 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/data 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/state 939s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_RGRQE3/gdbus/connection/cancel/.dirs/runtime 939s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 939s ok 9 /gdbus/connection/cancel 939s # End of connection tests 939s # End of gdbus tests 939s ok - glib/gdbus-connection.test 939s # Running test: glib/assert-msg-test.py.test 939s TAP version 13 939s ok 1 __main__.TestAssertMessage.test_gassert 939s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 939s # tmpdir: /tmp/tmps2r_8p0i 939s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 939s # Return code: -6 939s # Output: 939s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 939s # Error: 939s # ** 939s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 939s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 939s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 939s # tmpdir: /tmp/tmpabp61ksq 939s 1..2 939s ok - glib/assert-msg-test.py.test 939s # Running test: glib/gdatetime.test 939s TAP version 14 939s # random seed: R02S13a6c940aa53a99ed06fb9eb84c0f24e 939s 1..68 939s # Start of GDateTime tests 939s # Bug Reference: http://bugzilla.gnome.org/702674 939s ok 1 /GDateTime/invalid 939s ok 2 /GDateTime/add_days 939s ok 3 /GDateTime/add_full 939s ok 4 /GDateTime/add_hours 939s ok 5 /GDateTime/add_minutes 939s ok 6 /GDateTime/add_months 939s ok 7 /GDateTime/add_seconds 939s ok 8 /GDateTime/add_weeks 939s ok 9 /GDateTime/add_years 939s ok 10 /GDateTime/compare 939s ok 11 /GDateTime/diff 939s ok 12 /GDateTime/equal 939s ok 13 /GDateTime/get_day_of_week 939s ok 14 /GDateTime/get_day_of_month 939s ok 15 /GDateTime/get_day_of_year 939s ok 16 /GDateTime/get_hour 939s ok 17 /GDateTime/get_microsecond 939s ok 18 /GDateTime/get_minute 939s ok 19 /GDateTime/get_month 939s ok 20 /GDateTime/get_second 939s ok 21 /GDateTime/get_utc_offset 939s ok 22 /GDateTime/get_year 939s ok 23 /GDateTime/hash 939s ok 24 /GDateTime/new_from_unix 939s ok 25 /GDateTime/new_from_unix_utc 939s ok 26 /GDateTime/new_from_timeval 939s ok 27 /GDateTime/new_from_timeval_utc 939s ok 28 /GDateTime/new_from_iso8601 939s ok 29 /GDateTime/new_full 939s ok 30 /GDateTime/now 939s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 939s ok 31 /GDateTime/test-6-days-until-end-of-the-month 939s # %a -> expected: Sat 939s # %a -> actual: Sat 939s # %A -> expected: Saturday 939s # %A -> actual: Saturday 939s # %b -> expected: Oct 939s # %b -> actual: Oct 939s # %B -> expected: October 939s # %B -> actual: October 939s # %d -> expected: 24 939s # %d -> actual: 24 939s # %d -> expected: 01 939s # %d -> actual: 01 939s # %e -> expected: 24 939s # %e -> actual: 24 939s # %e -> expected:  1 939s # %e -> actual:  1 939s # %f -> expected: 001000 939s # %f -> actual: 001000 939s # %h -> expected: Oct 939s # %h -> actual: Oct 939s # %H -> expected: 00 939s # %H -> actual: 00 939s # %H -> expected: 15 939s # %H -> actual: 15 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %I -> expected: 03 939s # %I -> actual: 03 939s # %j -> expected: 297 939s # %j -> actual: 297 939s # %k -> expected:  0 939s # %k -> actual:  0 939s # %k -> expected: 13 939s # %k -> actual: 13 939s # %l -> expected: 12 939s # %l -> actual: 12 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %l -> expected:  1 939s # %l -> actual:  1 939s # %l -> expected: 10 939s # %l -> actual: 10 939s # %m -> expected: 10 939s # %m -> actual: 10 939s # %M -> expected: 00 939s # %M -> actual: 00 939s # %p -> expected: AM 939s # %p -> actual: AM 939s # %p -> expected: PM 939s # %p -> actual: PM 939s # %P -> expected: am 939s # %P -> actual: am 939s # %P -> expected: pm 939s # %P -> actual: pm 939s # %r -> expected: 12:00:00 AM 939s # %r -> actual: 12:00:00 AM 939s # %r -> expected: 01:13:13 PM 939s # %r -> actual: 01:13:13 PM 939s # %R -> expected: 00:00 939s # %R -> actual: 00:00 939s # %R -> expected: 13:13 939s # %R -> actual: 13:13 939s # %S -> expected: 00 939s # %S -> actual: 00 939s # %t -> expected: 939s # %t -> actual: 939s # %u -> expected: 6 939s # %u -> actual: 6 939s # %x -> expected: 10/24/09 939s # %x -> actual: 10/24/09 939s # %X -> expected: 00:00:00 939s # %X -> actual: 00:00:00 939s # %X -> expected: 13:14:15 939s # %X -> actual: 13:14:15 939s # %y -> expected: 09 939s # %y -> actual: 09 939s # %Y -> expected: 2009 939s # %Y -> actual: 2009 939s # %% -> expected: % 939s # %% -> actual: % 939s # % -> expected: 939s # % -> actual: 939s # %9 -> expected: (null) 939s # %9 -> actual: (null) 939s # %Z -> expected: UTC 939s # %Z -> actual: UTC 939s # %#Z %Z -> expected: utc UTC 939s # %#Z %Z -> actual: utc UTC 939s ok 32 /GDateTime/printf 939s # %a -> expected: 土 939s # %a -> actual: 土 939s # %A -> expected: 土曜日 939s # %A -> actual: 土曜日 939s # %b -> expected: 10月 939s # %b -> actual: 10月 939s # %B -> expected: 10月 939s # %B -> actual: 10月 939s # %c -> expected: 2009年10月24日 00時00分00秒 939s # %c -> actual: 2009年10月24日 00時00分00秒 939s # %C -> expected: 20 939s # %C -> actual: 20 939s # %d -> expected: 24 939s # %d -> actual: 24 939s # %d -> expected: 01 939s # %d -> actual: 01 939s # %e -> expected: 24 939s # %e -> actual: 24 939s # %h -> expected: 10月 939s # %h -> actual: 10月 939s # %H -> expected: 00 939s # %H -> actual: 00 939s # %H -> expected: 15 939s # %H -> actual: 15 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %I -> expected: 03 939s # %I -> actual: 03 939s # %j -> expected: 297 939s # %j -> actual: 297 939s # %k -> expected:  0 939s # %k -> actual:  0 939s # %k -> expected: 13 939s # %k -> actual: 13 939s # %l -> expected: 12 939s # %l -> actual: 12 939s # %I -> expected: 12 939s # %I -> actual: 12 939s # %l -> expected:  1 939s # %l -> actual:  1 939s # %l -> expected: 10 939s # %l -> actual: 10 939s # %m -> expected: 10 939s # %m -> actual: 10 939s # %M -> expected: 00 939s # %M -> actual: 00 939s # %p -> expected: 午前 939s # %p -> actual: 午前 939s # %p -> expected: 午後 939s # %p -> actual: 午後 939s # %P -> expected: 午前 939s # %P -> actual: 午前 939s # %P -> expected: 午後 939s # %P -> actual: 午後 939s # %r -> expected: 午前12時00分00秒 939s # %r -> actual: 午前12時00分00秒 939s # %r -> expected: 午後01時13分13秒 939s # %r -> actual: 午後01時13分13秒 939s # %R -> expected: 00:00 939s # %R -> actual: 00:00 939s # %R -> expected: 13:13 939s # %R -> actual: 13:13 939s # %S -> expected: 00 939s # %S -> actual: 00 939s # %t -> expected: 939s # %t -> actual: 939s # %u -> expected: 6 939s # %u -> actual: 6 939s # %x -> expected: 2009年10月24日 939s # %x -> actual: 2009年10月24日 939s # %X -> expected: 00時00分00秒 939s # %X -> actual: 00時00分00秒 939s # %X -> expected: 13時14分15秒 939s # %X -> actual: 13時14分15秒 939s # %y -> expected: 09 939s # %y -> actual: 09 939s # %Y -> expected: 2009 939s # %Y -> actual: 2009 939s # %% -> expected: % 939s # %% -> actual: % 939s # % -> expected: 939s # % -> actual: 939s # %9 -> expected: (null) 939s # %9 -> actual: (null) 939s # %Ec -> expected: 平成21年10月24日 00時00分00秒 939s # %Ec -> actual: 平成21年10月24日 00時00分00秒 939s # %EC -> expected: 平成 939s # %EC -> actual: 平成 939s # %Ex -> expected: 平成21年10月24日 939s # %Ex -> actual: 平成21年10月24日 939s # %EX -> expected: 00時00分00秒 939s # %EX -> actual: 00時00分00秒 939s # %Ey -> expected: 21 939s # %Ey -> actual: 21 939s # %EY -> expected: 平成21年 939s # %EY -> actual: 平成21年 939s ok 33 /GDateTime/non_utf8_printf 939s # ąśćł -> expected: ąśćł 939s # ąśćł -> actual: ąśćł 939s # %H∶%M -> expected: 23∶15 939s # %H∶%M -> actual: 23∶15 939s # %H∶%M -> expected: 23∶15 939s # %H∶%M -> actual: 23∶15 939s ok 34 /GDateTime/format_unrepresentable 939s ok 35 /GDateTime/format_iso8601 939s ok 36 /GDateTime/strftime 939s # %d -> expected: 01 939s # %d -> actual: 01 939s # %_d -> expected: 1 939s # %_d -> actual: 1 939s # %-d -> expected: 1 939s # %-d -> actual: 1 939s # %0d -> expected: 01 939s # %0d -> actual: 01 939s # %d -> expected: 21 939s # %d -> actual: 21 939s # %_d -> expected: 21 939s # %_d -> actual: 21 939s # %-d -> expected: 21 939s # %-d -> actual: 21 939s # %0d -> expected: 21 939s # %0d -> actual: 21 939s # %e -> expected:  1 939s # %e -> actual:  1 939s # %_e -> expected: 1 939s # %_e -> actual: 1 939s # %-e -> expected: 1 939s # %-e -> actual: 1 939s # %0e -> expected: 01 939s # %0e -> actual: 01 939s # %e -> expected: 21 939s # %e -> actual: 21 939s # %_e -> expected: 21 939s # %_e -> actual: 21 939s # %-e -> expected: 21 939s # %-e -> actual: 21 939s # %0e -> expected: 21 939s # %0e -> actual: 21 939s # %a -> expected: Thu 939s # %a -> actual: Thu 939s # %^a -> expected: THU 939s # %^a -> actual: THU 939s # %#a -> expected: THU 939s # %#a -> actual: THU 939s # %A -> expected: Thursday 939s # %A -> actual: Thursday 939s # %^A -> expected: THURSDAY 939s # %^A -> actual: THURSDAY 939s # %#A -> expected: THURSDAY 939s # %#A -> actual: THURSDAY 939s # %b -> expected: Jan 939s # %b -> actual: Jan 939s # %^b -> expected: JAN 939s # %^b -> actual: JAN 939s # %#b -> expected: JAN 939s # %#b -> actual: JAN 939s # %B -> expected: January 939s # %B -> actual: January 939s # %^B -> expected: JANUARY 939s # %^B -> actual: JANUARY 939s # %#B -> expected: JANUARY 939s # %#B -> actual: JANUARY 939s # %h -> expected: Jan 939s # %h -> actual: Jan 939s # %^h -> expected: JAN 939s # %^h -> actual: JAN 939s # %#h -> expected: JAN 939s # %#h -> actual: JAN 939s # %Z -> expected: UTC 939s # %Z -> actual: UTC 939s # %^Z -> expected: UTC 939s # %^Z -> actual: UTC 939s # %#Z -> expected: utc 939s # %#Z -> actual: utc 939s # %H -> expected: 01 939s # %H -> actual: 01 939s # %_H -> expected: 1 939s # %_H -> actual: 1 939s # %-H -> expected: 1 939s # %-H -> actual: 1 939s # %0H -> expected: 01 939s # %0H -> actual: 01 939s # %H -> expected: 21 939s # %H -> actual: 21 939s # %_H -> expected: 21 939s # %_H -> actual: 21 939s # %-H -> expected: 21 939s # %-H -> actual: 21 939s # %0H -> expected: 21 939s # %0H -> actual: 21 939s # %I -> expected: 01 939s # %I -> actual: 01 939s # %_I -> expected: 1 939s # %_I -> actual: 1 939s # %-I -> expected: 1 939s # %-I -> actual: 1 939s # %0I -> expected: 01 939s # %0I -> actual: 01 939s # %I -> expected: 11 939s # %I -> actual: 11 939s # %_I -> expected: 11 939s # %_I -> actual: 11 939s # %-I -> expected: 11 939s # %-I -> actual: 11 939s # %0I -> expected: 11 939s # %0I -> actual: 11 939s # %k -> expected:  1 939s # %k -> actual:  1 939s # %_k -> expected: 1 939s # %_k -> actual: 1 939s # %-k -> expected: 1 939s # %-k -> actual: 1 939s # %0k -> expected: 01 939s # %0k -> actual: 01 939s # %l -> expected:  1 939s # %l -> actual:  1 939s # %_l -> expected: 1 939s # %_l -> actual: 1 939s # %-l -> expected: 1 939s # %-l -> actual: 1 939s # %0l -> expected: 01 939s # %0l -> actual: 01 939s # %l -> expected: 11 939s # %l -> actual: 11 939s # %_l -> expected: 11 939s # %_l -> actual: 11 939s # %-l -> expected: 11 939s # %-l -> actual: 11 939s # %0l -> expected: 11 939s # %0l -> actual: 11 939s # %p -> expected: AM 939s # %p -> actual: AM 939s # %^p -> expected: AM 939s # %^p -> actual: AM 939s # %#p -> expected: am 939s # %#p -> actual: am 939s # %P -> expected: am 939s # %P -> actual: am 939s # %^P -> expected: AM 939s # %^P -> actual: AM 939s # %#P -> expected: am 939s # %#P -> actual: am 939s # %OH -> expected: ۲۳ 939s # %OH -> actual: ۲۳ 939s # %OI -> expected: ۱۱ 939s # %OI -> actual: ۱۱ 939s # %OM -> expected: ۰۰ 939s # %OM -> actual: ۰۰ 939s # %Om -> expected: ۰۷ 939s # %Om -> actual: ۰۷ 939s # %0Om -> expected: ۰۷ 939s # %0Om -> actual: ۰۷ 939s # %-Om -> expected: ۷ 939s # %-Om -> actual: ۷ 939s # %_Om -> expected: ۷ 939s # %_Om -> actual: ۷ 939s # %c -> expected: thu 01 jan 2009 00:00:00 utc 939s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 939s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 939s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 939s # %C -> expected: 20 939s # %C -> actual: 20 939s # %EC -> expected: 20 939s # %EC -> actual: 20 939s # %x -> expected: 02/01/09 939s # %x -> actual: 02/01/09 939s # %Ex -> expected: 02/01/09 939s # %Ex -> actual: 02/01/09 939s # %X -> expected: 01:02:03 939s # %X -> actual: 01:02:03 939s # %EX -> expected: 01:02:03 939s # %EX -> actual: 01:02:03 939s # %y -> expected: 09 939s # %y -> actual: 09 939s # %Ey -> expected: 09 939s # %Ey -> actual: 09 939s # %Y -> expected: 2009 939s # %Y -> actual: 2009 939s # %EY -> expected: 2009 939s # %EY -> actual: 2009 939s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 939s # Bug Reference: http://bugzilla.gnome.org/749206 939s # %B -> expected: January 939s # %B -> actual: January 939s # %OB -> expected: February 939s # %OB -> actual: February 939s # %b -> expected: Mar 939s # %b -> actual: Mar 939s # %Ob -> expected: Apr 939s # %Ob -> actual: Apr 939s # %h -> expected: May 939s # %h -> actual: May 939s # %Oh -> expected: Jun 939s # %Oh -> actual: Jun 939s # %B -> expected: Juli 939s # %B -> actual: Juli 939s # %OB -> expected: August 939s # %OB -> actual: August 939s # %b -> expected: Sep 939s # %b -> actual: Sep 939s # %Ob -> expected: Okt 939s # %Ob -> actual: Okt 939s # %h -> expected: Nov 939s # %h -> actual: Nov 939s # %Oh -> expected: Dez 939s # %Oh -> actual: Dez 939s # %B -> expected: enero 939s # %B -> actual: enero 939s # %OB -> expected: febrero 939s # %OB -> actual: febrero 939s # %b -> expected: mar 939s # %b -> actual: mar 939s # %Ob -> expected: abr 939s # %Ob -> actual: abr 939s # %h -> expected: may 939s # %h -> actual: may 939s # %Oh -> expected: jun 939s # %Oh -> actual: jun 939s # %B -> expected: juillet 939s # %B -> actual: juillet 939s # %OB -> expected: août 939s # %OB -> actual: août 939s # %b -> expected: sept. 939s # %b -> actual: sept. 939s # %Ob -> expected: oct. 939s # %Ob -> actual: oct. 939s # %h -> expected: nov. 939s # %h -> actual: nov. 939s # %Oh -> expected: déc. 939s # %Oh -> actual: déc. 939s # %B -> expected: Ιανουαρίου 939s # %B -> actual: Ιανουαρίου 939s # %B -> expected: Φεβρουαρίου 939s # %B -> actual: Φεβρουαρίου 939s # %B -> expected: Μαρτίου 939s # %B -> actual: Μαρτίου 939s # %OB -> expected: Απρίλιος 939s # %OB -> actual: Απρίλιος 939s # %OB -> expected: Μάιος 939s # %OB -> actual: Μάιος 939s # %OB -> expected: Ιούνιος 939s # %OB -> actual: Ιούνιος 939s # %b -> expected: Ιουλ 939s # %b -> actual: Ιουλ 939s # %Ob -> expected: Αύγ 939s # %Ob -> actual: Αύγ 939s # %B -> expected: svibnja 939s # %B -> actual: svibnja 939s # %B -> expected: lipnja 939s # %B -> actual: lipnja 939s # %B -> expected: srpnja 939s # %B -> actual: srpnja 939s # %OB -> expected: Kolovoz 939s # %OB -> actual: kolovoz 939s # %OB -> expected: Rujan 939s # %OB -> actual: rujan 939s # %OB -> expected: Listopad 939s # %OB -> actual: listopad 939s # %b -> expected: Stu 939s # %b -> actual: stu 939s # %Ob -> expected: Pro 939s # %Ob -> actual: pro 939s # %B -> expected: sausio 939s # %B -> actual: sausio 939s # %B -> expected: vasario 939s # %B -> actual: vasario 939s # %B -> expected: kovo 939s # %B -> actual: kovo 939s # %OB -> expected: balandis 939s # %OB -> actual: balandis 939s # %OB -> expected: gegužė 939s # %OB -> actual: gegužė 939s # %OB -> expected: birželis 939s # %OB -> actual: birželis 939s # %b -> expected: liep. 939s # %b -> actual: liep. 939s # %Ob -> expected: rugp. 939s # %Ob -> actual: rugp. 939s # %B -> expected: maja 939s # %B -> actual: maja 939s # %B -> expected: czerwca 939s # %B -> actual: czerwca 939s # %B -> expected: lipca 939s # %B -> actual: lipca 939s # %OB -> expected: sierpień 939s # %OB -> actual: sierpień 939s # %OB -> expected: wrzesień 939s # %OB -> actual: wrzesień 939s # %OB -> expected: październik 939s # %OB -> actual: październik 939s # %b -> expected: lis 939s # %b -> actual: lis 939s # %Ob -> expected: gru 939s # %Ob -> actual: gru 939s # %B -> expected: января 939s # %B -> actual: января 939s # %B -> expected: февраля 939s # %B -> actual: февраля 939s # %B -> expected: марта 939s # %B -> actual: марта 939s # %OB -> expected: Апрель 939s # %OB -> actual: Апрель 939s # %OB -> expected: Май 939s # %OB -> actual: Май 939s # %OB -> expected: Июнь 939s # %OB -> actual: Июнь 939s # %b -> expected: июл 939s # %b -> actual: июл 939s # %Ob -> expected: авг 939s # %Ob -> actual: авг 939s # %b -> expected: мая 939s # %b -> actual: мая 939s # %Ob -> expected: май 939s # %Ob -> actual: май 939s ok 38 /GDateTime/month_names 939s ok 39 /GDateTime/to_local 939s ok 40 /GDateTime/to_unix 939s ok 41 /GDateTime/to_timeval 939s ok 42 /GDateTime/to_utc 939s ok 43 /GDateTime/now_utc 939s ok 44 /GDateTime/dst 939s # Bug Reference: http://bugzilla.gnome.org/642935 939s ok 45 /GDateTime/test_z 940s ok 46 /GDateTime/test-all-dates 940s # slow test /GDateTime/test-all-dates executed in 0.88 secs 940s ok 47 /GDateTime/unix_usec 940s # Start of new_from_unix tests 940s # Bug Reference: http://bugzilla.gnome.org/782089 940s ok 48 /GDateTime/new_from_unix/overflow 940s # End of new_from_unix tests 940s # Start of new_from_timeval tests 940s # Bug Reference: http://bugzilla.gnome.org/782089 940s # Maximum supported GTimeVal.tv_sec = 253402300799 940s ok 49 /GDateTime/new_from_timeval/overflow 940s # End of new_from_timeval tests 940s # Start of new_from_iso8601 tests 940s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 940s # Vector 0: 1990-11-01T10:21:17Z 940s # Vector 1: 19901101T102117Z 940s # Vector 2: 1970-01-01T00:00:17.12Z 940s # Vector 3: 1970-01-01T00:00:17.1234Z 940s # Vector 4: 1970-01-01T00:00:17.123456Z 940s # Vector 5: 1980-02-22T12:36:00+02:00 940s # Vector 6: 1990-12-31T15:59:60-08:00 940s # Vector 7: 940s # Vector 8: x 940s # Vector 9: 123x 940s # Vector 10: 2001-10+x 940s # Vector 11: 1980-02-22T 940s # Vector 12: 2001-10-08Tx 940s # Vector 13: 2001-10-08T10:11x 940s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 940s # Vector 15: 1980-02-22T10:36:00Zulu 940s # Vector 16: 2T0+819855292164632335 940s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 940s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 940s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 940s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 940s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 940s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 940s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 940s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 940s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 940s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 940s # Vector 27: 20180803T140805.446178377+0100 940s # Vector 28: 21474836480803T140805.446178377+0100 940s # Vector 29: 20181303T140805.446178377+0100 940s # Vector 30: 20180003T140805.446178377+0100 940s # Vector 31: 20180800T140805.446178377+0100 940s # Vector 32: 20180832T140805.446178377+0100 940s # Vector 33: 20180803T240805.446178377+0100 940s # Vector 34: 20180803T146005.446178377+0100 940s # Vector 35: 20180803T140863.446178377+0100 940s # Vector 36: 20180803T140805.446178377+10000 940s # Vector 37: -0005-01-01T00:00:00Z 940s # Vector 38: 2018-08-06 940s # Vector 39: 20180803T140805,446178377+0100 940s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 940s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 940s # Vector 42: 1990-11-01T10:21:17 940s # Vector 43: 1719W462 407777-07 940s # Vector 44: 4011090 260528Z 940s # Vector 45: 0000W011 228214-22 940s ok 50 /GDateTime/new_from_iso8601/2 940s # End of new_from_iso8601 tests 940s # Start of format_mixed tests 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 940s # %b -> expected: mar 940s # %b -> actual: Mar 940s # %B -> expected: march 940s # %B -> actual: March 940s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 940s # %b -> expected: mar 940s # %b -> actual: Mar 940s # %B -> expected: march 940s # %B -> actual: March 940s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 940s # %b -> expected: Mär 940s # %b -> actual: Mär 940s # %B -> expected: März 940s # %B -> actual: März 940s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 940s # %b -> expected: Mär 940s # %b -> actual: Mär 940s # %B -> expected: März 940s # %B -> actual: März 940s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 940s # End of format_mixed tests 940s # Start of strftime tests 940s # %r -> expected: (null) 940s # %r -> actual: (null) 940s ok 55 /GDateTime/strftime/error_handling 940s # End of strftime tests 940s # Start of eras tests 940s # %Ec -> expected: 令和05年06月01日 00時00分00秒 940s # %Ec -> actual: 令和05年06月01日 00時00分00秒 940s # %EC -> expected: 令和 940s # %EC -> actual: 令和 940s # %Ex -> expected: 令和05年06月01日 940s # %Ex -> actual: 令和05年06月01日 940s # %EX -> expected: 00時00分00秒 940s # %EX -> actual: 00時00分00秒 940s # %Ey -> expected: 05 940s # %Ey -> actual: 05 940s # %EY -> expected: 令和05年 940s # %EY -> actual: 令和05年 940s # %Ec -> expected: 平成31年04月30日 00時00分00秒 940s # %Ec -> actual: 平成31年04月30日 00時00分00秒 940s # %EC -> expected: 平成 940s # %EC -> actual: 平成 940s # %Ex -> expected: 平成31年04月30日 940s # %Ex -> actual: 平成31年04月30日 940s # %EX -> expected: 00時00分00秒 940s # %EX -> actual: 00時00分00秒 940s # %Ey -> expected: 31 940s # %Ey -> actual: 31 940s # %EY -> expected: 平成31年 940s # %EY -> actual: 平成31年 940s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 940s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 940s # %EC -> expected: 昭和 940s # %EC -> actual: 昭和 940s # %Ex -> expected: 昭和元年12月25日 940s # %Ex -> actual: 昭和元年12月25日 940s # %EX -> expected: 00時00分00秒 940s # %EX -> actual: 00時00分00秒 940s # %Ey -> expected: 01 940s # %Ey -> actual: 01 940s # %EY -> expected: 昭和元年 940s # %EY -> actual: 昭和元年 940s ok 56 /GDateTime/eras/japan 940s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 940s # Vector 0: 940s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 940s # 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年 940s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 940s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 940s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 940s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 940s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 940s # Vector 8: + 940s # Vector 9: +: 940s # Vector 10: +:: 940s # Vector 11: +:200 940s # Vector 12: +:2nonsense 940s # Vector 13: +:2nonsense: 940s # Vector 14: +:2: 940s # Vector 15: +:2:: 940s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 940s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 940s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 940s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 940s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 940s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 940s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 940s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 940s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 940s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 940s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 940s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 940s # Vector 28: +:2:2020/01/01 940s # Vector 29: +:2:2020/01/01: 940s # Vector 30: +:2:2020/01/01:: 940s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 940s # Vector 32: +:2:2020/01/01:+* 940s # Vector 33: +:2:2020/01/01:+*: 940s # Vector 34: +:2:2020/01/01:+*:: 940s # Vector 35: +:2:2020/01/01:+*:令和 940s # Vector 36: +:2:2020/01/01:+*:令和: 940s # Vector 37: +:2:2020/01/01:+*:令和:; 940s ok 58 /GDateTime/eras/parsing 940s # End of eras tests 940s # End of GDateTime tests 940s # Start of GTimeZone tests 940s ok 59 /GTimeZone/find-interval 940s ok 60 /GTimeZone/adjust-time 940s ok 61 /GTimeZone/no-header 940s ok 62 /GTimeZone/no-header-identifier 940s ok 63 /GTimeZone/posix-parse 940s # Bug Reference: http://bugzilla.gnome.org/697715 940s ok 64 /GTimeZone/floating-point 940s # System time zone identifier: Etc/UTC 940s ok 65 /GTimeZone/identifier 940s # Vector 0: -158400 940s # Vector 1: -10000 940s # Vector 2: -3600 940s # Vector 3: -61 940s # Vector 4: -60 940s # Vector 5: -59 940s # Vector 6: 0 940s # Vector 7: 59 940s # Vector 8: 60 940s # Vector 9: 61 940s # Vector 10: 3600 940s # Vector 11: 10000 940s # Vector 12: 158400 940s ok 66 /GTimeZone/new-offset 940s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 940s ok 67 /GTimeZone/parse-rfc8536 940s # /GTimeZone/caching summary: GTimeZone instances are cached 940s ok 68 /GTimeZone/caching 940s # End of GTimeZone tests 940s TAP version 14 940s # random seed: R02S1f8301d7979b02133e7065868a5e1c0e 940s 1..34 940s # Start of hash tests 940s ok 1 /hash/misc 940s ok 2 /hash/one 940s ok 3 /hash/honeyman 940s ok 4 /hash/direct 940s ok 5 /hash/direct2 940s ok 6 /hash/int 940s ok 7 /hash/int64 940s ok 8 /hash/double 940s ok 9 /hash/string 940s ok 10 /hash/set 940s ok 11 /hash/set-ref 940s ok 12 /hash/ref 940s ok 13 /hash/remove-all 940s ok 14 /hash/recursive-remove-all 940s ok 15 /hash/find 940s ok 16 /hash/foreach 940s ok 17 /hash/foreach-steal 940s ok 18 /hash/steal-extended 940s ok 19 /hash/steal-all-keys 940s ok 20 /hash/steal-all-values 940s ok 21 /hash/lookup-extended 940s ok 22 /hash/new-similar 940s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 940s ok 23 /hash/lookup-null-key 940s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 940s ok 24 /hash/destroy-modify 940s ok 25 /hash/consistency 940s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 940s ok 26 /hash/iter-replace 940s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 940s ok 27 /hash/set-insert-corruption 940s ok 28 /hash/set-to-strv 940s ok 29 /hash/get-keys-as-ptr-array 940s ok 30 /hash/get-values-as-ptr-array 940s ok 31 /hash/primes 940s # Start of int64 tests 940s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 940s ok 32 /hash/int64/collisions 940s # End of int64 tests 940s # Start of double tests 940s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 940s ok 33 /hash/double/collisions 940s # End of double tests 940s # Start of recursive-remove-all tests 940s # End of recursive-remove-all tests 940s # Start of steal-extended tests 940s ok 34 /hash/steal-extended/optional 940s # End of steal-extended tests 940s # End of hash tests 940s TAP version 14 940s # random seed: R02S3bc7448d826fc6ed7d9c363070d43e40 940s 1..1 940s # Start of thread tests 940s ok - glib/gdatetime.test 940s # Running test: glib/hash.test 940s ok - glib/hash.test 940s # Running test: glib/onceinit.test 940s ok 1 /thread/onceinit 940s # End of thread tests 940s ok - glib/onceinit.test 940s # Running test: glib/socket-listener.test 940s TAP version 14 940s # random seed: R02Sea2f172c9de0b7b9c193484540f11420 940s 1..4 940s # Start of socket-listener tests 940s ok 1 /socket-listener/event-signal 940s # Start of accept tests 940s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 940s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 940s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb61400efb4e0 and GSocketClientAsyncConnectData 0xb61400ef6970 940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb61400efdb70 and GSocketClientAsyncConnectData 0xb61400efd9c0 940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb61400efe390 and GSocketClientAsyncConnectData 0xb61400efe110 940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb61400efec10 and GSocketClientAsyncConnectData 0xb61400efe990 940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb61400eff430 and GSocketClientAsyncConnectData 0xb61400eff1b0 940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb61400f01970 for GSocketClientAsyncConnectData 0xb61400ef6970 940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb61400f03ae0 for GSocketClientAsyncConnectData 0xb61400efd9c0 940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb61400f04290 for GSocketClientAsyncConnectData 0xb61400efe110 940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb61400f04930 for GSocketClientAsyncConnectData 0xb61400efe990 940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb61400f01010 for GSocketClientAsyncConnectData 0xb61400eff1b0 940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 940s ok 2 /socket-listener/accept/multi-simultaneously 940s # End of accept tests 940s # Start of add-any-inet-port tests 940s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 940s # Test 0 940s # Test 1 940s # Test 2 940s # Test 3 940s # Test 4 940s # Test 5 940s # Test 6 940s # Test 7 940s # Test 8 940s # Test 9 940s # Test 10 940s ok 3 /socket-listener/add-any-inet-port/listen-failures 940s # End of add-any-inet-port tests 940s # Start of add-inet-port tests 940s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 940s # Test 0 940s # Test 1 940s # Test 2 940s # Test 3 940s # Test 4 940s # Test 5 940s # Test 6 940s # Test 7 940s # Test 8 940s # Test 9 940s # Test 10 940s ok 4 /socket-listener/add-inet-port/listen-failures 940s # End of add-inet-port tests 940s # End of socket-listener tests 940s TAP version 14 940s # random seed: R02S4b0ea3b4d4e72b3f113c7d0973e67a0c 940s 1..1 940s # Start of gobject tests 940s # Start of refcount tests 940s ok 1 /gobject/refcount/properties-4 940s # End of refcount tests 940s # End of gobject tests 940s TAP version 14 940s # random seed: R02S36e6c7b8a5357e4307108c7bd351950b 940s 1..4 940s # Start of repository tests 940s # Start of search-paths tests 940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/home 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/cache 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/system-config2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/config 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/system-data2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/data 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/state 940s ok - glib/socket-listener.test 940s # Running test: glib/properties-refcount4.test 940s ok - glib/properties-refcount4.test 940s # Running test: glib/repository-search-paths.test 940s ok - glib/repository-search-paths.test 940s # Running test: glib/gio-tool.py.test 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/default/.dirs/runtime 940s ok 1 /repository/search-paths/default 940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/home 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/cache 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/system-config2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/config 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/system-data2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/data 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/state 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_R8HVE3/repository/search-paths/prepend/.dirs/runtime 940s ok 2 /repository/search-paths/prepend 940s # End of search-paths tests 940s # Start of library-paths tests 940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/home 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/cache 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/system-config2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/config 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/system-data2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/data 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/state 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/default/.dirs/runtime 940s ok 3 /repository/library-paths/default 940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/home 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/cache 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/system-config2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/config 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/system-data2 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/data 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/state 940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_R8HVE3/repository/library-paths/prepend/.dirs/runtime 940s ok 4 /repository/library-paths/prepend 940s # End of library-paths tests 940s # End of repository tests 940s TAP version 13 940s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmp323a1nhy 940s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp323a1nhy/folder/desktop.entry'] 940s # Working Directory: /tmp/tmp323a1nhy/folder 940s # Return code: 0 940s # Output: 940s # /tmp/tmp323a1nhy/folder/desktop.entry 940s # Error: 940s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmpsco9ab2b 940s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpsco9ab2b/folder/desktop.entry'] 940s # Working Directory: /tmp/tmpsco9ab2b 940s # Return code: 0 940s # Output: 940s # /tmp/tmpsco9ab2b/folder/desktop.entry 940s # Error: 940s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmp22qe_kam 940s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp22qe_kam/folder/desktop.entry'] 940s # Working Directory: /tmp/tmp22qe_kam/sibling 940s # Return code: 0 940s # Output: 940s # /tmp/tmp22qe_kam/folder/desktop.entry 940s # Error: 940s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmpplgkngte 940s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 940s # Working Directory: /tmp/tmpplgkngte/folder 940s # Return code: 0 940s # Output: 940s # /tmp/tmpplgkngte/folder/desktop.entry 940s # Error: 940s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmpqjf15g3f 940s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 940s # Working Directory: /tmp/tmpqjf15g3f 940s # Return code: 0 940s # Output: 940s # /tmp/tmpqjf15g3f/folder/desktop.entry 940s # Error: 940s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmppen9zlaw 940s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 940s # Working Directory: /tmp/tmppen9zlaw/sibling 940s # Return code: 0 940s # Output: 940s # /tmp/tmppen9zlaw/folder/desktop.entry 940s # Error: 940s ok 7 __main__.TestGioTool.test_help 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmpqdg2jayy 940s # Running: ['/usr/bin/gio', '--help'] 940s # Return code: 0 940s # Output: 940s # Usage: 940s # gio COMMAND [ARGS…] 940s # 940s # Commands: 940s # help Print help 940s # version Print version 940s # cat Concatenate files to standard output 940s # copy Copy one or more files 940s # info Show information about locations 940s # launch Launch an application from a desktop file 940s # list List the contents of locations 940s # mime Get or set the handler for a mimetype 940s # mkdir Create directories 940s # monitor Monitor files and directories for changes 940s # mount Mount or unmount the locations 940s # move Move one or more files 940s # open Open files with the default application 940s # rename Rename a file 940s # remove Delete one or more files 940s # save Read from standard input and save 940s # set Set a file attribute 940s # trash Move files or directories to the trash 940s # tree Lists the contents of locations in a tree 940s # 940s # Use “gio help COMMAND” to get detailed help. 940s # Error: 940s # 940s # Running: ['/usr/bin/gio', 'help'] 940s # Return code: 0 940s # Output: 940s # Usage: 940s # gio COMMAND [ARGS…] 940s # 940s # Commands: 940s # help Print help 940s # version Print version 940s # cat Concatenate files to standard output 940s # copy Copy one or more files 940s # info Show information about locations 940s # launch Launch an application from a desktop file 940s # list List the contents of locations 940s # mime Get or set the handler for a mimetype 940s # mkdir Create directories 940s # monitor Monitor files and directories for changes 940s # mount Mount or unmount the locations 940s # move Move one or more files 940s # open Open files with the default application 940s # rename Rename a file 940s # remove Delete one or more files 940s # save Read from standard input and save 940s # set Set a file attribute 940s # trash Move files or directories to the trash 940s # tree Lists the contents of locations in a tree 940s # 940s # Use “gio help COMMAND” to get detailed help. 940s # Error: 940s ok 8 __main__.TestGioTool.test_info_non_default_attributes 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmp47io9uxa 940s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmp47io9uxa/tmps3euzwo2'] 940s # Return code: 0 940s # Output: 940s # uri: file:///tmp/tmp47io9uxa/tmps3euzwo2 940s # local path: /tmp/tmp47io9uxa/tmps3euzwo2 940s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 940s # attributes: 940s # standard::content-type: application/x-zerosize 940s # Error: 940s ok 9 __main__.TestGioTool.test_no_args 940s # gio: /usr/bin/gio 940s # tmpdir: /tmp/tmpuogwxtcy 940s # Running: ['/usr/bin/gio'] 940s # Return code: 1 940s # Output: 940s # 940s # Error: 940s # Usage: 940s # gio COMMAND [ARGS…] 940s # 940s # Commands: 940s # help Print help 940s # version Print version 940s # cat Concatenate files to standard output 940s # copy Copy one or more files 940s # info Show information about locations 940s # launch Launch an application from a desktop file 940s # list List the contents of locations 940s # mime Get or set the handler for a mimetype 940s # mkdir Create directories 940s # monitor Monitor files and directories for changes 940s # mount Mount or unmount the locations 940s # move Move one or more files 940s # open Open files with the default application 940s # rename Rename a file 940s # remove Delete one or more files 940s # save Read from standard input and save 940s # set Set a file attribute 940s # trash Move files or directories to the trash 940s # tree Lists the contents of locations in a tree 940s # 940s # Use “gio help COMMAND” to get detailed help. 940s 1..9 940s ok - glib/gio-tool.py.test 940s # Running test: glib/references.test 940s TAP version 14 940s # random seed: R02S0bce2c087e8456519b3b83db05f7eb71 940s 1..4 940s # Start of gobject tests 940s ok 1 /gobject/references 940s ok 2 /gobject/references-many 940s ok 3 /gobject/references_two 940s ok 4 /gobject/references_run_dispose 940s # End of gobject tests 940s ok - glib/references.test 940s # Running test: glib/atomic.test 940s TAP version 14 940s # random seed: R02S2476626af9a30c085ccd4e3a463784a7 940s 1..2 940s # Start of atomic tests 940s ok 1 /atomic/types 940s ok 2 /atomic/threaded 940s # End of atomic tests 940s ok - glib/atomic.test 940s # Running test: glib/socket-address.test 941s TAP version 14 941s # random seed: R02S0f02044af5bb6a02edae9c3a508f6334 941s 1..2 941s # Start of socket tests 941s # Start of address tests 941s # Start of unix tests 941s ok 1 /socket/address/unix/construct 941s ok 2 /socket/address/unix/to-string 941s # End of unix tests 941s # End of address tests 941s # End of socket tests 941s ok - glib/socket-address.test 941s # Running test: glib/signals-refcount1.test 941s TAP version 14 941s # random seed: R02S28474bd62d77e4c9a616a11048a5a5be 941s 1..1 941s # Start of gobject tests 941s # Start of refcount tests 941s # init 0xb879374084a0 941s # 941s # init 0xb87937400580 941s # 943s # Executing: glib/signals-refcount1.test 946s # dispose 0xb879374084a0! 946s # 946s # dispose 0xb87937400580! 946s # 946s ok 1 /gobject/refcount/signals 946s # slow test /gobject/refcount/signals executed in 5.00 secs 946s # End of refcount tests 946s # End of gobject tests 946s ok - glib/signals-refcount1.test 946s # Running test: glib/trash.test 946s TAP version 14 946s # random seed: R02S2d0ac015abf3150b6d0fe9011e3cf7d9 946s 1..3 946s # Start of trash tests 946s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 946s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 946s # File: /tmp/test-trash8F3YE3 (parent st_dev: 64769) 946s # Home: /home/ubuntu (st_dev: 64769) 946s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 946s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 946s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 946s ok 3 /trash/long-filename 946s # End of trash tests 946s ok - glib/trash.test 946s # Running test: glib/macros-c-17.test 946s ok - glib/macros-c-17.test 946s # Running test: glib/fileutils.test 946s TAP version 14 946s # random seed: R02S6bad3ea89dff9c6e62185ac71a634648 946s 1..4 946s # Start of C tests 946s ok 1 /C/standard-17 946s # End of C tests 946s # Start of alignof tests 946s ok 2 /alignof/fallback 946s # End of alignof tests 946s # Start of assert tests 946s ok 3 /assert/static 946s # End of assert tests 946s # Start of struct tests 946s ok 4 /struct/sizeof_member 946s # End of struct tests 946s TAP version 14 946s # random seed: R02S0884301796e5d487066f735ec1b1f1d9 946s 1..27 946s # Start of fileutils tests 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/paths/.dirs/runtime 946s ok 1 /fileutils/paths 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/build-path/.dirs/runtime 946s ok 2 /fileutils/build-path 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/build-pathv/.dirs/runtime 946s ok 3 /fileutils/build-pathv 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/build-filename/.dirs/runtime 946s ok 4 /fileutils/build-filename 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/build-filenamev/.dirs/runtime 946s ok 5 /fileutils/build-filenamev 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents/.dirs/runtime 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Checking g_mkdir_with_parents() in subdir ./hum/ 946s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 946s ok 6 /fileutils/mkdir-with-parents 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/mkdir-with-parents-permission/.dirs/runtime 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s ok 7 /fileutils/mkdir-with-parents-permission 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/format-size-for-display/.dirs/runtime 946s ok 8 /fileutils/format-size-for-display 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/errors/.dirs/runtime 946s ok 9 /fileutils/errors 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/basename/.dirs/runtime 946s ok 10 /fileutils/basename 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/get-basename/.dirs/runtime 946s ok 11 /fileutils/get-basename 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/dirname/.dirs/runtime 946s ok 12 /fileutils/dirname 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/dir-make-tmp/.dirs/runtime 946s ok 13 /fileutils/dir-make-tmp 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/file-open-tmp/.dirs/runtime 946s ok 14 /fileutils/file-open-tmp 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/file-test/.dirs/runtime 946s ok 15 /fileutils/file-test 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/mkstemp/.dirs/runtime 946s ok 16 /fileutils/mkstemp 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/mkdtemp/.dirs/runtime 946s ok 17 /fileutils/mkdtemp 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents/.dirs/runtime 946s ok 18 /fileutils/get-contents 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/get-contents-large-file/.dirs/runtime 946s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents/.dirs/runtime 946s ok 20 /fileutils/set-contents 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/.dirs/runtime 946s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 946s # Flags 0 and test 0 946s # Flags 0 and test 1 946s # Flags 0 and test 2 946s # Flags 0 and test 3 946s # Flags 0 and test 4 946s # Flags 0 and test 5 946s # Flags 0 and test 6 946s # Flags 1 and test 0 946s # Flags 1 and test 1 946s # Flags 1 and test 2 946s # Flags 1 and test 3 946s # Flags 1 and test 4 946s # Flags 1 and test 5 946s # Flags 1 and test 6 946s # Flags 2 and test 0 946s # Flags 2 and test 1 946s # Flags 2 and test 2 946s # Flags 2 and test 3 946s # Flags 2 and test 4 946s # Flags 2 and test 5 946s # Flags 2 and test 6 946s # Flags 3 and test 0 946s # Flags 3 and test 1 946s # Flags 3 and test 2 946s # Flags 3 and test 3 946s # Flags 3 and test 4 946s # Flags 3 and test 5 946s # Flags 3 and test 6 946s # Flags 4 and test 0 946s # Flags 4 and test 1 946s # Flags 4 and test 2 946s # Flags 4 and test 3 946s # Flags 4 and test 4 946s # Flags 4 and test 5 946s # Flags 4 and test 6 946s # Flags 5 and test 0 946s # Flags 5 and test 1 946s # Flags 5 and test 2 946s # Flags 5 and test 3 946s # Flags 5 and test 4 946s # Flags 5 and test 5 946s # Flags 5 and test 6 946s # Flags 6 and test 0 946s # Flags 6 and test 1 946s # Flags 6 and test 2 946s # Flags 6 and test 3 946s # Flags 6 and test 4 946s # Flags 6 and test 5 946s # Flags 6 and test 6 946s ok 21 /fileutils/set-contents-full 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/read-link/.dirs/runtime 946s ok 22 /fileutils/read-link 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/stdio-wrappers/.dirs/runtime 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s ok 23 /fileutils/stdio-wrappers 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/fopen-modes/.dirs/runtime 946s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 946s # Testing fopen() mode 'w' 946s # Testing fopen() mode 'r' 946s # Testing fopen() mode 'a' 946s # Testing fopen() mode 'w+' 946s # Testing fopen() mode 'r+' 946s # Testing fopen() mode 'a+' 946s # Testing fopen() mode 'wb' 946s # Testing fopen() mode 'rb' 946s # Testing fopen() mode 'ab' 946s # Testing fopen() mode 'w+b' 946s # Testing fopen() mode 'r+b' 946s # Testing fopen() mode 'a+b' 946s # Testing fopen() mode 'wb+' 946s # Testing fopen() mode 'rb+' 946s # Testing fopen() mode 'ab+' 946s # Testing fopen() mode 'we' 946s # Testing fopen() mode 're' 946s # Testing fopen() mode 'ae' 946s # Testing fopen() mode 'w+e' 946s # Testing fopen() mode 'r+e' 946s # Testing fopen() mode 'a+e' 946s # Testing fopen() mode 'wbe' 946s # Testing fopen() mode 'rbe' 946s # Testing fopen() mode 'abe' 946s # Testing fopen() mode 'w+be' 946s # Testing fopen() mode 'r+be' 946s # Testing fopen() mode 'a+be' 946s # Testing fopen() mode 'wb+e' 946s # Testing fopen() mode 'rb+e' 946s # Testing fopen() mode 'ab+e' 946s # Testing fopen() mode 'web' 946s # Testing fopen() mode 'reb' 946s # Testing fopen() mode 'aeb' 946s # Testing fopen() mode 'w+eb' 946s # Testing fopen() mode 'r+eb' 946s # Testing fopen() mode 'a+eb' 946s # Testing fopen() mode 'web+' 946s # Testing fopen() mode 'reb+' 946s # Testing fopen() mode 'aeb+' 946s ok 24 /fileutils/fopen-modes 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/clear-fd/.dirs/runtime 946s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 946s # Will be closed by autocleanup: 3, -42 946s # Testing error handling 946s ok 25 /fileutils/clear-fd 946s # Start of set-contents-full tests 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-file/.dirs/runtime 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 946s ok 26 /fileutils/set-contents-full/read-only-file 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2ZAZE3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 946s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 946s # Flags 0 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 1 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 2 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 3 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 4 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 5 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s # Flags 6 946s # We do not have CAP_DAC_OVERRIDE or equivalent 946s ok 27 /fileutils/set-contents-full/read-only-directory 946s ok - glib/fileutils.test 946s # End of set-contents-full tests 946s # Start of clear-fd tests 946s # Start of subprocess tests 946s # End of subprocess tests 946s # End of clear-fd tests 946s # End of fileutils tests 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-P57HE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-SBMHE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-CLPHE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-6G5HE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-7QSHE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-N4QHE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3/glib-file-set-contents-full-rodir-V6IHE3: Directory not empty 946s Unable to clean up temporary directory /tmp/test_fileutils_2ZAZE3: Directory not empty 946s # Running test: glib/genmarshal.py.test 946s TAP version 13 946s ok 1 __main__.TestGenmarshal.test_empty_list 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmp8rchsndt 946s # /tmp/tmp8rchsndt/tmpzg0xfsjl.list: 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8rchsndt/tmpzg0xfsjl.list', '--header', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # #include 946s # 946s # G_BEGIN_DECLS 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8rchsndt/tmpzg0xfsjl.list', '--body', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #include 946s # 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # Error: 946s ok 2 __main__.TestGenmarshal.test_help 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpsm1_gede 946s # Running: ['/usr/bin/glib-genmarshal', '--help'] 946s # Return code: 0 946s # Output: 946s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 946s # [--internal] [--valist-marshallers] [-v] 946s # [--g-fatal-warnings] [--include-header [HEADER]] 946s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 946s # [--prototypes] [--header] [--body] [--stdinc | 946s # --nostdinc] [--quiet | --verbose] 946s # [FILE ...] 946s # 946s # Generate signal marshallers for GObject 946s # 946s # positional arguments: 946s # FILE Files with lists of marshallers to generate, or "-" 946s # for standard input 946s # 946s # options: 946s # -h, --help show this help message and exit 946s # --prefix STRING Specify marshaller prefix 946s # --output FILE Write output into the specified file 946s # --skip-source Skip source location comments 946s # --internal Mark generated functions as internal 946s # --valist-marshallers Generate va_list marshallers 946s # -v, --version Print version information, and exit 946s # --g-fatal-warnings Make warnings fatal 946s # --include-header [HEADER] 946s # Include the specified header in the body 946s # --pragma-once Use "pragma once" as the inclusion guard 946s # -D CPP_DEFINES Pre-processor define 946s # -U CPP_UNDEFINES Pre-processor undefine 946s # --prototypes Generate the marshallers prototype in the C code 946s # --header Generate C headers 946s # --body Generate C code 946s # --stdinc Include standard marshallers 946s # --nostdinc Use standard marshallers 946s # --quiet Only print warnings and errors 946s # --verbose Be verbose, and include debugging information 946s # Error: 946s ok 3 __main__.TestGenmarshal.test_no_args 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpexaeykjs 946s # Running: ['/usr/bin/glib-genmarshal'] 946s # Return code: 0 946s # Output: 946s # 946s # Error: 946s ok 4 __main__.TestGenmarshal.test_void_boolean 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpmezz_wt3 946s # /tmp/tmpmezz_wt3/tmp3znwx_g4.list: VOID:BOOLEAN 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmezz_wt3/tmp3znwx_g4.list', '--header', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # #include 946s # 946s # G_BEGIN_DECLS 946s # 946s # /* VOID:BOOLEAN (/tmp/tmpmezz_wt3/tmp3znwx_g4.list:1) */ 946s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmezz_wt3/tmp3znwx_g4.list', '--body', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #include 946s # 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # Error: 946s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmp1t8zb90a 946s # /tmp/tmp1t8zb90a/tmpi8zvxap6.list: VOID:BOOLEAN,INT64 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp1t8zb90a/tmpi8zvxap6.list', '--header', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # #include 946s # 946s # G_BEGIN_DECLS 946s # 946s # /* VOID:BOOLEAN,INT64 (/tmp/tmp1t8zb90a/tmpi8zvxap6.list:1) */ 946s # extern 946s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 946s # GValue *return_value, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint, 946s # gpointer marshal_data); 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp1t8zb90a/tmpi8zvxap6.list', '--body', '--quiet'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #include 946s # 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # 946s # /* VOID:BOOLEAN,INT64 (/tmp/tmp1t8zb90a/tmpi8zvxap6.list:1) */ 946s # void 946s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint G_GNUC_UNUSED, 946s # gpointer marshal_data) 946s # { 946s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 946s # gboolean arg1, 946s # gint64 arg2, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 946s # 946s # g_return_if_fail (n_param_values == 3); 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = g_value_peek_pointer (param_values + 0); 946s # } 946s # else 946s # { 946s # data1 = g_value_peek_pointer (param_values + 0); 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # g_marshal_value_peek_boolean (param_values + 1), 946s # g_marshal_value_peek_int64 (param_values + 2), 946s # data2); 946s # } 946s # Error: 946s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpr6tgj53_ 946s # /tmp/tmpr6tgj53_/tmp6cw2k0qw.list: VOID:PARAM 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpr6tgj53_/tmp6cw2k0qw.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # G_BEGIN_DECLS 946s # 946s # /* VOID:PARAM (/tmp/tmpr6tgj53_/tmp6cw2k0qw.list:1) */ 946s # extern 946s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 946s # GValue *return_value, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint, 946s # gpointer marshal_data); 946s # extern 946s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 946s # GValue *return_value, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types); 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpr6tgj53_/tmp6cw2k0qw.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # 946s # /* VOID:PARAM (/tmp/tmpr6tgj53_/tmp6cw2k0qw.list:1) */ 946s # void 946s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint G_GNUC_UNUSED, 946s # gpointer marshal_data) 946s # { 946s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__PARAM callback; 946s # 946s # g_return_if_fail (n_param_values == 2); 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = g_value_peek_pointer (param_values + 0); 946s # } 946s # else 946s # { 946s # data1 = g_value_peek_pointer (param_values + 0); 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # g_marshal_value_peek_param (param_values + 1), 946s # data2); 946s # } 946s # 946s # void 946s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types) 946s # { 946s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__PARAM callback; 946s # gpointer arg0; 946s # va_list args_copy; 946s # 946s # va_copy (args_copy, args); 946s # arg0 = (gpointer) va_arg (args_copy, gpointer); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # arg0 = g_param_spec_ref (arg0); 946s # va_end (args_copy); 946s # 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = instance; 946s # } 946s # else 946s # { 946s # data1 = instance; 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # arg0, 946s # data2); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # g_param_spec_unref (arg0); 946s # } 946s # Error: 946s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpao8seq42 946s # /tmp/tmpao8seq42/tmp46yywi4x.list: VOID:STRING 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpao8seq42/tmp46yywi4x.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # G_BEGIN_DECLS 946s # 946s # /* VOID:STRING (/tmp/tmpao8seq42/tmp46yywi4x.list:1) */ 946s # extern 946s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 946s # GValue *return_value, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint, 946s # gpointer marshal_data); 946s # extern 946s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 946s # GValue *return_value, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types); 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpao8seq42/tmp46yywi4x.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # 946s # /* VOID:STRING (/tmp/tmpao8seq42/tmp46yywi4x.list:1) */ 946s # void 946s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint G_GNUC_UNUSED, 946s # gpointer marshal_data) 946s # { 946s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__STRING callback; 946s # 946s # g_return_if_fail (n_param_values == 2); 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = g_value_peek_pointer (param_values + 0); 946s # } 946s # else 946s # { 946s # data1 = g_value_peek_pointer (param_values + 0); 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # g_marshal_value_peek_string (param_values + 1), 946s # data2); 946s # } 946s # 946s # void 946s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types) 946s # { 946s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__STRING callback; 946s # gpointer arg0; 946s # va_list args_copy; 946s # 946s # va_copy (args_copy, args); 946s # arg0 = (gpointer) va_arg (args_copy, gpointer); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # arg0 = g_strdup (arg0); 946s # va_end (args_copy); 946s # 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = instance; 946s # } 946s # else 946s # { 946s # data1 = instance; 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # arg0, 946s # data2); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # g_free (arg0); 946s # } 946s # Error: 946s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 946s # glib-genmarshal: /usr/bin/glib-genmarshal 946s # tmpdir: /tmp/tmpfjk2h259 946s # /tmp/tmpfjk2h259/tmpg7gk_4rk.list: VOID:VARIANT 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfjk2h259/tmpg7gk_4rk.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 946s # 946s # G_BEGIN_DECLS 946s # 946s # /* VOID:VARIANT (/tmp/tmpfjk2h259/tmpg7gk_4rk.list:1) */ 946s # extern 946s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 946s # GValue *return_value, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint, 946s # gpointer marshal_data); 946s # extern 946s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 946s # GValue *return_value, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types); 946s # 946s # 946s # G_END_DECLS 946s # 946s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 946s # Error: 946s # 946s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfjk2h259/tmpg7gk_4rk.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 946s # Return code: 0 946s # Output: 946s # /* 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. */ 946s # #ifdef G_ENABLE_DEBUG 946s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 946s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 946s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 946s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 946s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 946s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 946s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 946s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 946s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 946s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 946s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 946s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 946s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 946s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 946s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 946s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 946s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 946s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 946s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 946s # #else /* !G_ENABLE_DEBUG */ 946s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 946s # * Do not access GValues directly in your code. Instead, use the 946s # * g_value_get_*() functions 946s # */ 946s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 946s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 946s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 946s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 946s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 946s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 946s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 946s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 946s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 946s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 946s # #endif /* !G_ENABLE_DEBUG */ 946s # 946s # /* VOID:VARIANT (/tmp/tmpfjk2h259/tmpg7gk_4rk.list:1) */ 946s # void 946s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # guint n_param_values, 946s # const GValue *param_values, 946s # gpointer invocation_hint G_GNUC_UNUSED, 946s # gpointer marshal_data) 946s # { 946s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__VARIANT callback; 946s # 946s # g_return_if_fail (n_param_values == 2); 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = g_value_peek_pointer (param_values + 0); 946s # } 946s # else 946s # { 946s # data1 = g_value_peek_pointer (param_values + 0); 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # g_marshal_value_peek_variant (param_values + 1), 946s # data2); 946s # } 946s # 946s # void 946s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 946s # GValue *return_value G_GNUC_UNUSED, 946s # gpointer instance, 946s # va_list args, 946s # gpointer marshal_data, 946s # int n_params, 946s # GType *param_types) 946s # { 946s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 946s # gpointer arg1, 946s # gpointer data2); 946s # GCClosure *cc = (GCClosure *) closure; 946s # gpointer data1, data2; 946s # GMarshalFunc_VOID__VARIANT callback; 946s # gpointer arg0; 946s # va_list args_copy; 946s # 946s # va_copy (args_copy, args); 946s # arg0 = (gpointer) va_arg (args_copy, gpointer); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # arg0 = g_variant_ref_sink (arg0); 946s # va_end (args_copy); 946s # 946s # 946s # if (G_CCLOSURE_SWAP_DATA (closure)) 946s # { 946s # data1 = closure->data; 946s # data2 = instance; 946s # } 946s # else 946s # { 946s # data1 = instance; 946s # data2 = closure->data; 946s # } 946s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 946s # 946s # callback (data1, 946s # arg0, 946s # data2); 946s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 946s # g_variant_unref (arg0); 946s # } 946s # Error: 946s 1..8 946s ok - glib/genmarshal.py.test 946s # Running test: glib/print.test 946s TAP version 14 946s # random seed: R02Sfd071b54e32060eabba51074b3bb274e 946s 1..1 946s ok 1 /print-console # SKIP Testing console output only supported on Windows 946s ok - glib/print.test 946s # Running test: glib/utils-isolated.test 946s TAP version 14 946s # random seed: R02S13dadf4eae6e4184743ddd6d2e0b6200 946s 1..11 946s # Start of utils-isolated tests 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/tmp-dir/.dirs/runtime 946s ok 1 /utils-isolated/tmp-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/home-dir/.dirs/runtime 946s ok 2 /utils-isolated/home-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-cache-dir/.dirs/runtime 946s ok 3 /utils-isolated/user-cache-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-config-dirs/.dirs/runtime 946s ok 4 /utils-isolated/system-config-dirs 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-config-dir/.dirs/runtime 946s ok 5 /utils-isolated/user-config-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/system-data-dirs/.dirs/runtime 946s ok 6 /utils-isolated/system-data-dirs 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-data-dir/.dirs/runtime 946s ok 7 /utils-isolated/user-data-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-state-dir/.dirs/runtime 946s ok 8 /utils-isolated/user-state-dir 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/user-runtime-dir/.dirs/runtime 946s ok 9 /utils-isolated/user-runtime-dir 946s # Start of cleanup tests 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/runtime 946s Unable to clean up temporary directory /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 946s Unable to clean up temporary directory /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 946s Unable to clean up temporary directory /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/handles-errors: Directory not empty 946s ok 10 /utils-isolated/cleanup/handles-errors 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 946s Unable to clean up temporary directory /tmp/test_utils-isolated_ATO0E3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 946s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 946s # End of cleanup tests 946s # End of utils-isolated tests 946s ok - glib/utils-isolated.test 946s # Running test: glib/tls-database.test 946s TAP version 14 946s # random seed: R02S6adc72bd1ce666bdd56f3134db113518 946s 1..1 946s # Start of tls-backend tests 946s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 946s ok 1 /tls-backend/set-default-database 946s # End of tls-backend tests 946s ok - glib/tls-database.test 946s # Running test: glib/gdbus-test-codegen.test 946s TAP version 14 946s # random seed: R02S4dfb2e9ff91ae7418c4bebc237d36aa1 946s 1..8 946s # Start of gdbus tests 946s # Start of codegen tests 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/annotations/.dirs/runtime 946s ok 1 /gdbus/codegen/annotations 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/interface_stability/.dirs/runtime 946s ok 2 /gdbus/codegen/interface_stability 946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/home 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/cache 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/system-config2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/config 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/system-data2 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/data 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/state 946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/object-manager/.dirs/runtime 947s ok 3 /gdbus/codegen/object-manager 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/property-naming/.dirs/runtime 947s ok 4 /gdbus/codegen/property-naming 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/autocleanups/.dirs/runtime 947s ok 5 /gdbus/codegen/autocleanups 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/deprecations/.dirs/runtime 947s ok 6 /gdbus/codegen/deprecations 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 947s ok 7 /gdbus/codegen/standalone-interface-info 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_VXVZE3/gdbus/codegen/unix-fd-list/.dirs/runtime 947s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 947s ok - glib/gdbus-test-codegen.test 947s ok 8 /gdbus/codegen/unix-fd-list 947s # End of codegen tests 947s # End of gdbus tests 947s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 947s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 947s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 947s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 947s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 947s # Running test: glib/autoptr.test 947s ok - glib/autoptr.test 947s TAP version 14 947s # random seed: R02S7ee398469b6a27462d62df908666cf1d 947s 1..6 947s # Start of autoptr tests 947s ok 1 /autoptr/autoptr 947s ok 2 /autoptr/autoptr_steal 947s ok 3 /autoptr/autolist 947s ok 4 /autoptr/autoslist 947s ok 5 /autoptr/autoqueue 947s ok 6 /autoptr/autoclass 947s # End of autoptr tests 947s # Running test: glib/gdbus-addresses.test 947s TAP version 14 947s # random seed: R02Sb8026da0f9eb2c373e82435a9451c9af 947s 1..9 947s # Start of gdbus tests 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/empty-address/.dirs/runtime 947s ok 1 /gdbus/empty-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/unsupported-address/.dirs/runtime 947s ok 2 /gdbus/unsupported-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/address-parsing/.dirs/runtime 947s ok 3 /gdbus/address-parsing 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/unix-address/.dirs/runtime 947s ok 4 /gdbus/unix-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/nonce-tcp-address/.dirs/runtime 947s ok 5 /gdbus/nonce-tcp-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/tcp-address/.dirs/runtime 947s ok 6 /gdbus/tcp-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/autolaunch-address/.dirs/runtime 947s ok 7 /gdbus/autolaunch-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/mixed-address/.dirs/runtime 947s ok 8 /gdbus/mixed-address 947s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/home 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/cache 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/system-config2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/config 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/system-data2 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/data 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/state 947s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_B3LME3/gdbus/escape-address/.dirs/runtime 947s ok 9 /gdbus/escape-address 947s # End of gdbus tests 947s ok - glib/gdbus-addresses.test 947s # Running test: glib/cond.test 947s TAP version 14 947s # random seed: R02S3726b91348bd259e05c5acd1257c108c 947s 1..4 947s # Start of thread tests 947s ok 1 /thread/cond1 947s ok 2 /thread/cond2 947s # Start of cond tests 948s ok 3 /thread/cond/wait-until 948s # slow test /thread/cond/wait-until executed in 1.02 secs 948s # Start of wait-until tests 948s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 948s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 948s # Executing: glib/cond.test 949s ok 4 /thread/cond/wait-until/contended-and-interrupted 949s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 949s # End of wait-until tests 949s # End of cond tests 949s # End of thread tests 949s ok - glib/cond.test 949s # Running test: glib/collate.test 949s TAP version 14 949s # random seed: R02Sb0f575b576f401a26c055d3796188bc2 949s 1..9 949s # Start of unicode tests 949s # Start of collate tests 949s ok 1 /unicode/collate/0 949s ok 2 /unicode/collate/1 949s ok 3 /unicode/collate/2 949s # End of collate tests 949s # Start of collate-key tests 949s ok 4 /unicode/collate-key/0 949s ok 5 /unicode/collate-key/1 949s ok 6 /unicode/collate-key/2 949s # End of collate-key tests 949s # Start of collate-filename tests 949s ok 7 /unicode/collate-filename/0 949s ok 8 /unicode/collate-filename/1 949s ok 9 /unicode/collate-filename/2 949s # End of collate-filename tests 949s # End of unicode tests 949s ok - glib/collate.test 949s # Running test: glib/refstring.test 949s TAP version 14 949s # random seed: R02S57ab7ebb0654d6f91b1a43b63d630bde 949s 1..8 949s # Start of refstring tests 949s # s = 'hello, world' (0xbd89f6fee2b0) 949s ok 1 /refstring/base 949s ok 2 /refstring/length 949s ok 3 /refstring/length-auto 949s ok 4 /refstring/length-nuls 949s # s = 'hello, world' (0xbd89f6fee150) 949s # p = s = 'hello, world' (0xbd89f6fee150) 949s # releasing p[0xbd89f6fee150] ('hello, world') 949s # p = 'goodbye, world' (0xbd89f6fee2b0) 949s # releasing p[0xbd89f6fee2b0] ('goodbye, world') 949s # releasing s[0xbd89f6fee150] ('hello, world') 949s ok 5 /refstring/intern 949s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 949s ok 6 /refstring/hash_equal 949s # /refstring/equal summary: Test g_ref_string_equal() standalone 949s ok 7 /refstring/equal 949s ok 8 /refstring/intern-thread-safety 949s # slow test /refstring/intern-thread-safety executed in 0.60 secs 949s # End of refstring tests 949s ok - glib/refstring.test 949s # Running test: glib/cache.test 949s ok - glib/cache.test 949s TAP version 14 949s # random seed: R02S00f4836b824fdafd47b31368a2b4571e 949s 1..1 949s # Start of cache tests 949s ok 1 /cache/basic 949s # End of cache tests 949s # Running test: glib/mimeapps.test 949s TAP version 14 949s # random seed: R02S55992d6d9b769d2c0709812a7dbe5920 949s 1..13 949s # Start of appinfo tests 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 949s ok 1 /appinfo/all 949s # Start of mime tests 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/all/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config 949s ok 2 /appinfo/mime/api 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config 949s ok 3 /appinfo/mime/default 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config 949s ok 4 /appinfo/mime/file 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/config 949s ok 5 /appinfo/mime/scheme-handler 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config 949s ok 6 /appinfo/mime/default-last-used 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/config 949s ok 7 /appinfo/mime/ignore-nonexisting 949s # End of mime tests 949s # Start of mime-symlinked tests 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 949s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config 949s ok 8 /appinfo/mime-symlinked/api 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config 949s ok 9 /appinfo/mime-symlinked/default 949s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/home 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/cache 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-config2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-data2 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/state 949s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/runtime 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 949s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 949s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 949s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config 950s ok 10 /appinfo/mime-symlinked/file 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 950s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 950s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/config 950s ok 11 /appinfo/mime-symlinked/scheme-handler 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 950s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config 950s ok 12 /appinfo/mime-symlinked/default-last-used 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 950s # removing '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 950s # creating '/tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 950s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_G0I3E3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 950s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 950s # End of mime-symlinked tests 950s # End of appinfo tests 950s ok - glib/mimeapps.test 950s # Running test: glib/gdbus-names.test 950s TAP version 14 950s # random seed: R02S3a7f76d8b6132473c1db19f573ac3b51 950s 1..10 950s # Start of gdbus tests 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/validate-names/.dirs/runtime 950s ok 1 /gdbus/validate-names 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-own-name/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 2 /gdbus/bus-own-name 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 3 /gdbus/bus-watch-name 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 4 /gdbus/bus-watch-name-auto-start 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s dbus-daemon[2248]: [session uid=1000 pid=2248 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=2238 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 950s # Acquired a message bus connection 950s dbus-daemon[2248]: [session uid=1000 pid=2248 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 950s # Acquired the name org.gtk.GDBus.FakeService 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 6 /gdbus/bus-watch-name-closures 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 7 /gdbus/bus-watch-name-closures-auto-start 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-watch-different-context/.dirs/runtime 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 8 /gdbus/bus-watch-different-context 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/bus-unwatch-early/.dirs/runtime 950s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 950s ok 9 /gdbus/bus-unwatch-early 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_KVGME3/gdbus/escape-object-path/.dirs/runtime 950s ok 10 /gdbus/escape-object-path 950s # End of gdbus tests 950s ok - glib/gdbus-names.test 950s # Running test: glib/mount-operation.test 950s ok - glib/mount-operation.test 950s TAP version 14 950s # random seed: R02Sf2dd4ab0cbc4f1fdae62a88dfac0635a 950s 1..2 950s # Start of mount-operation tests 950s ok 1 /mount-operation/construction 950s ok 2 /mount-operation/properties 950s # End of mount-operation tests 950s # Running test: glib/io-channel.test 950s TAP version 14 950s # random seed: R02Sc75659e75cd8efe409668cb3c626e957 950s 1..2 950s # Start of io-channel tests 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_JOFKE3/io-channel/read-write/.dirs/runtime 950s # Line one 950s # 950s # Line two 950s # 950s # Line three 950s # 950s # /* Hello */ 950s # 950s # \x1234\x567890\x6666 950s # 950s # read 62 bytes, wrote 62 bytes 950s ok 1 /io-channel/read-write 950s # Start of read-line tests 950s ok - glib/io-channel.test 950s # Running test: glib/buffered-output-stream.test 950s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/home 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/cache 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/system-config2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/config 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/system-data2 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/data 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/state 950s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_JOFKE3/io-channel/read-line/embedded-nuls/.dirs/runtime 950s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 950s ok 2 /io-channel/read-line/embedded-nuls 950s # End of read-line tests 950s # End of io-channel tests 950s TAP version 14 950s # random seed: R02S8691a875f74ad6658726f2e1da98c30f 950s 1..5 950s # Start of buffered-output-stream tests 950s ok 1 /buffered-output-stream/write 950s ok 2 /buffered-output-stream/grow 950s ok 3 /buffered-output-stream/seek 950s ok 4 /buffered-output-stream/truncate 950s # End of buffered-output-stream tests 950s # Start of filter-output-stream tests 950s ok 5 /filter-output-stream/close 950s # End of filter-output-stream tests 950s ok - glib/buffered-output-stream.test 950s # Running test: glib/gnotification.test 950s TAP version 14 950s # random seed: R02S1d77df3284ef065d6d2842697051cc68 950s 1..2 950s # Start of gnotification tests 950s ok 1 /gnotification/basic 950s ok 2 /gnotification/properties 950s # End of gnotification tests 950s ok - glib/gnotification.test 950s # Running test: glib/shell.test 950s TAP version 14 950s # random seed: R02S9455f201a3c09f741900a50f9d63a05b 950s 1..52 950s # Start of shell tests 950s # Start of cmdline tests 950s test cmdline: foo bar 950s ok 1 /shell/cmdline/0 950s test cmdline: foo 'bar' 950s ok 2 /shell/cmdline/1 950s test cmdline: foo "bar" 950s ok 3 /shell/cmdline/2 950s test cmdline: foo '' 'bar' 950s ok 4 /shell/cmdline/3 950s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 950s ok 5 /shell/cmdline/4 950s test cmdline: foo blah foo bar baz 950s ok 6 /shell/cmdline/5 950s test cmdline: foo ' spaces more spaces lots of spaces in this ' 950s ok 7 /shell/cmdline/6 950s test cmdline: foo \ 950s bar 950s ok 8 /shell/cmdline/7 950s test cmdline: foo '' '' 950s ok 9 /shell/cmdline/8 950s test cmdline: foo \" la la la 950s ok 10 /shell/cmdline/9 950s test cmdline: foo \ foo woo woo\ 950s ok 11 /shell/cmdline/10 950s test cmdline: foo "yada yada \$\"" 950s ok 12 /shell/cmdline/11 950s test cmdline: foo "c:\\" 950s ok 13 /shell/cmdline/12 950s test cmdline: foo # bla bla bla 950s bar 950s ok 14 /shell/cmdline/13 950s test cmdline: foo a#b 950s ok 15 /shell/cmdline/14 950s test cmdline: #foo 950s ok 16 /shell/cmdline/15 950s test cmdline: foo bar \ 950s ok 17 /shell/cmdline/16 950s test cmdline: foo 'bar baz 950s ok 18 /shell/cmdline/17 950s test cmdline: foo '"bar" baz 950s ok 19 /shell/cmdline/18 950s test cmdline: 950s ok 20 /shell/cmdline/19 950s test cmdline: 950s ok 21 /shell/cmdline/20 950s test cmdline: # foo bar 950s ok 22 /shell/cmdline/21 950s test cmdline: # 950s ok 23 /shell/cmdline/22 950s test cmdline: foo '/bar/summer'\''09 tours.pdf' 950s ok 24 /shell/cmdline/23 950s # End of cmdline tests 950s # Start of quote tests 950s ok 25 /shell/quote/0 950s ok 26 /shell/quote/1 950s ok 27 /shell/quote/2 950s ok 28 /shell/quote/3 950s ok 29 /shell/quote/4 950s ok 30 /shell/quote/5 950s ok 31 /shell/quote/6 950s # End of quote tests 950s # Start of unquote tests 950s ok 32 /shell/unquote/0 950s ok 33 /shell/unquote/1 950s ok 34 /shell/unquote/2 950s ok 35 /shell/unquote/3 950s ok 36 /shell/unquote/4 950s ok 37 /shell/unquote/5 950s ok 38 /shell/unquote/6 950s ok 39 /shell/unquote/7 950s ok 40 /shell/unquote/8 950s ok 41 /shell/unquote/9 950s ok 42 /shell/unquote/10 950s ok 43 /shell/unquote/11 950s ok 44 /shell/unquote/12 950s ok 45 /shell/unquote/13 950s ok 46 /shell/unquote/14 950s ok 47 /shell/unquote/15 950s ok 48 /shell/unquote/16 950s ok 49 /shell/unquote/17 950s ok 50 /shell/unquote/18 950s ok 51 /shell/unquote/19 950s ok 52 /shell/unquote/20 950s # End of unquote tests 950s # End of shell tests 950s ok - glib/shell.test 950s # Running test: glib/sequence.test 950s TAP version 14 950s # random seed: R02Sd03f0bfc0618ba6976d59d0e8cebbd35 950s 1..16 950s # Start of sequence tests 950s ok 1 /sequence/out-of-range-jump 950s ok 2 /sequence/iter-move 950s ok 3 /sequence/insert-sorted-non-pointer 950s ok 4 /sequence/stable-sort 950s ok 5 /sequence/is_empty 950s # Start of random tests 950s ok 6 /sequence/random/seed:825541564 950s # slow test /sequence/random/seed:825541564 executed in 0.56 secs 951s ok 7 /sequence/random/seed:801678400 951s # slow test /sequence/random/seed:801678400 executed in 0.53 secs 951s ok 8 /sequence/random/seed:1477639090 951s # slow test /sequence/random/seed:1477639090 executed in 0.55 secs 952s ok 9 /sequence/random/seed:3369132895 952s # slow test /sequence/random/seed:3369132895 executed in 0.51 secs 952s ok 10 /sequence/random/seed:1192944867 952s # slow test /sequence/random/seed:1192944867 executed in 0.53 secs 953s # Executing: glib/sequence.test 953s ok 11 /sequence/random/seed:770458294 953s # slow test /sequence/random/seed:770458294 executed in 0.56 secs 954s ok 12 /sequence/random/seed:1099575817 954s # slow test /sequence/random/seed:1099575817 executed in 0.53 secs 954s ok 13 /sequence/random/seed:590523467 954s # slow test /sequence/random/seed:590523467 executed in 0.55 secs 955s ok 14 /sequence/random/seed:3583571454 955s # slow test /sequence/random/seed:3583571454 executed in 0.55 secs 955s ok 15 /sequence/random/seed:579241222 955s # slow test /sequence/random/seed:579241222 executed in 0.55 secs 956s ok 16 /sequence/random/seed:1815891252 956s # slow test /sequence/random/seed:1815891252 executed in 0.53 secs 956s # End of random tests 956s # End of sequence tests 956s ok - glib/sequence.test 956s # Running test: glib/closure.test 956s TAP version 14 956s # random seed: R02S57d964a4972b44f8b0c5b52e6c6db589 956s 1..6 956s # Start of closure tests 956s ok 1 /closure/idle 956s ok 2 /closure/timeout 956s ok 3 /closure/iochannel 956s ok 4 /closure/child 956s ok 5 /closure/fd 956s ok 6 /closure/signal 956s # End of closure tests 956s ok - glib/closure.test 956s # Running test: glib/atomic-c-11.test 956s TAP version 14 956s # random seed: R02S0ff2d353400349ecc894183e2b30bdac 956s 1..2 956s # Start of atomic tests 956s ok 1 /atomic/types 956s ok - glib/atomic-c-11.test 956s ok 2 /atomic/threaded 956s # End of atomic tests 956s # Running test: glib/permission.test 956s ok - glib/permission.test 956s TAP version 14 956s # random seed: R02Sf42c29d8588e37ae40e63033af992a6a 956s 1..1 956s # Start of permission tests 956s ok 1 /permission/simple 956s # End of permission tests 956s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 956s TAP version 14 956s # random seed: R02Sd66057d4a176bcda9ee32f7c760b9d57 956s 1..8 956s # Start of gdbus tests 956s # Start of codegen tests 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/annotations/.dirs/runtime 956s ok 1 /gdbus/codegen/annotations 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/interface_stability/.dirs/runtime 956s ok 2 /gdbus/codegen/interface_stability 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/object-manager/.dirs/runtime 956s ok 3 /gdbus/codegen/object-manager 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/property-naming/.dirs/runtime 956s ok 4 /gdbus/codegen/property-naming 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/autocleanups/.dirs/runtime 956s ok 5 /gdbus/codegen/autocleanups 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/deprecations/.dirs/runtime 956s ok 6 /gdbus/codegen/deprecations 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 956s ok 7 /gdbus/codegen/standalone-interface-info 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_E3BRE3/gdbus/codegen/unix-fd-list/.dirs/runtime 956s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 956s ok 8 /gdbus/codegen/unix-fd-list 956s # End of codegen tests 956s # End of gdbus tests 956s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 956s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 956s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 956s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 956s ok - glib/gdbus-test-codegen-min-required-2-64.test 956s # Running test: glib/basic-signals.test 956s ok - glib/basic-signals.test 956s # Running test: glib/thread.test 956s ok - glib/thread.test 956s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 956s TAP version 14 956s # random seed: R02Sad9c72a5137c37633378ffd92de5c162 956s 1..1 956s # Start of gobject tests 956s ok 1 /gobject/basic-signals 956s # End of gobject tests 956s TAP version 14 956s # random seed: R02S68700bffb591874f5de3ea7aa0d13560 956s 1..7 956s # Start of thread tests 956s ok 1 /thread/thread1 956s ok 2 /thread/thread2 956s ok 3 /thread/thread3 956s ok 4 /thread/thread4 956s ok 5 /thread/thread5 956s ok 6 /thread/thread6 956s ok 7 /thread/thread7 956s # End of thread tests 956s # Running test: glib/boxed.test 956s TAP version 14 956s # random seed: R02S89f1eeca45c05c07df4cc97103e57bca 956s 1..27 956s # Start of boxed tests 956s ok 1 /boxed/define 956s ok 2 /boxed/ownership 956s ok 3 /boxed/closure 956s ok 4 /boxed/date 956s ok 5 /boxed/value 956s ok 6 /boxed/string 956s ok 7 /boxed/hashtable 956s ok 8 /boxed/array 956s ok 9 /boxed/ptrarray 956s ok 10 /boxed/regex 956s ok 11 /boxed/varianttype 956s ok 12 /boxed/error 956s ok 13 /boxed/datetime 956s ok 14 /boxed/matchinfo 956s ok 15 /boxed/keyfile 956s ok 16 /boxed/mainloop 956s ok 17 /boxed/maincontext 956s ok 18 /boxed/source 956s ok 19 /boxed/variantbuilder 956s ok 20 /boxed/timezone 956s ok 21 /boxed/pollfd 956s ok 22 /boxed/markup 956s ok 23 /boxed/thread 956s ok 24 /boxed/checksum 956s ok 25 /boxed/tree 956s ok 26 /boxed/patternspec 956s ok 27 /boxed/rand 956s # End of boxed tests 956s ok - glib/boxed.test 956s # Running test: glib/cxx-2b.test 956s TAP version 14 956s # random seed: R02Sffd56dfa72b4ccbff1c50896dc90f247 956s 1..2 956s # Start of gtask tests 956s # 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. 956s ok 1 /gtask/name 956s # Start of name tests 956s # 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. 956s ok 2 /gtask/name/macro-wrapper 956s # End of name tests 956s # End of gtask tests 956s ok - glib/cxx-2b.test 956s # Running test: glib/power-profile-monitor.test 956s ok - glib/power-profile-monitor.test 956s # Running test: glib/dump.test 956s TAP version 14 956s # random seed: R02S8629950ed6641a5641f6514eab77882f 956s 1..1 956s # Start of power-profile-monitor tests 956s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 956s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 956s ok 1 /power-profile-monitor/default 956s # End of power-profile-monitor tests 956s TAP version 14 956s # random seed: R02S7a4036e7790fc6f990c4866489d3208b 956s 1..4 956s # Start of dump tests 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_PAHPE3/dump/empty-file/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_PAHPE3/dump/empty-file/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_PAHPE3/dump/empty-file/.dirs/runtime 956s ok 1 /dump/empty-file 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_PAHPE3/dump/missing-get-type/.dirs/runtime 956s Invalid GType function: 'does_not_exist_get_type' 956s ok 2 /dump/missing-get-type 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_PAHPE3/dump/missing-quark/.dirs/runtime 956s Invalid error quark function: 'does_not_exist_error' 956s ok - glib/dump.test 956s # Running test: glib/hook.test 956s ok - glib/hook.test 956s # Running test: glib/mutex.test 956s ok 3 /dump/missing-quark 956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_PAHPE3/dump/basic/.dirs/home 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_PAHPE3/dump/basic/.dirs/cache 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_PAHPE3/dump/basic/.dirs/system-config1:/tmp/test_dump_PAHPE3/dump/basic/.dirs/system-config2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_PAHPE3/dump/basic/.dirs/config 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_PAHPE3/dump/basic/.dirs/system-data1:/tmp/test_dump_PAHPE3/dump/basic/.dirs/system-data2 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_PAHPE3/dump/basic/.dirs/data 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_PAHPE3/dump/basic/.dirs/state 956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_PAHPE3/dump/basic/.dirs/runtime 956s ok 4 /dump/basic 956s # End of dump tests 956s TAP version 14 956s # random seed: R02S37550f91af69b00b0c30e532400948bc 956s 1..2 956s # Start of hook tests 956s ok 1 /hook/basics 956s ok 2 /hook/corner-cases 956s # End of hook tests 956s TAP version 14 956s # random seed: R02S7d3aa7b9f428438c2099620c297da1b2 956s 1..17 956s # Start of thread tests 956s ok 1 /thread/mutex1 956s ok 2 /thread/mutex2 956s ok 3 /thread/mutex3 956s ok 4 /thread/mutex4 958s # Executing: glib/mutex.test 960s ok 5 /thread/mutex5 960s # slow test /thread/mutex5 executed in 3.49 secs 960s # Start of mutex tests 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s ok - glib/mutex.test 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s # /thread/mutex/errno summary: Validates that errno is not touched upon return 960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 960s ok 6 /thread/mutex/errno 960s # Start of perf tests 960s # max perf: 1.000000 mips 960s ok 7 /thread/mutex/perf/uncontended 960s # Start of contended tests 960s # max perf: inf mips 960s ok 8 /thread/mutex/perf/contended/1 960s # max perf: inf mips 960s ok 9 /thread/mutex/perf/contended/2 960s # max perf: 4.000000 mips 960s ok 10 /thread/mutex/perf/contended/3 960s # max perf: inf mips 960s ok 11 /thread/mutex/perf/contended/4 960s # max perf: 3.000000 mips 960s ok 12 /thread/mutex/perf/contended/5 960s # max perf: 7.000000 mips 960s ok 13 /thread/mutex/perf/contended/6 960s # max perf: 4.000000 mips 960s ok 14 /thread/mutex/perf/contended/7 960s # max perf: 3.000000 mips 960s ok 15 /thread/mutex/perf/contended/8 960s # max perf: 3.333333 mips 960s ok 16 /thread/mutex/perf/contended/9 960s # max perf: 5.500000 mips 960s ok 17 /thread/mutex/perf/contended/10 960s # End of contended tests 960s # End of perf tests 960s # End of mutex tests 960s # End of thread tests 960s # Running test: glib/g-file.test 960s TAP version 14 960s # random seed: R02S4cfc6662ecc9222c0abf4304d72f47ab 960s 1..8 960s # Start of g-file tests 960s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 960s ok 1 /g-file/test_g_file_new_null 960s ok 2 /g-file/test_g_file_new_for_path 960s ok 3 /g-file/test_g_file_new_for_uri 960s ok 4 /g-file/test_g_file_dup 960s ok 5 /g-file/test_g_file_get_parse_name_utf8 960s file:///tmp/test-tmp-glib_g-file.test-9TFIE3 960s file:///tmp 960s file:///tmp 960s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 960s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 960s ok - glib/g-file.test 960s # Running test: glib/utf8-misc.test 960s ok - glib/utf8-misc.test 960s # Running test: glib/gdbus-threading.test 960s ok - glib/gdbus-threading.test 960s # Running test: glib/power-profile-monitor-portal.test 960s ok 6 /g-file/test_g_file_new_for_commandline_arg 960s /dir1 /dir1/dir2/dir3/ 960s /dir1/ /dir1/dir2/dir3/ 960s /dir1 /dir1/dir2/dir3 960s /dir1/ /dir1/dir2/dir3 960s /tmp/ /something/ 960s /dir1/dir2 /dir1/ 960s //dir1/new //dir1/new/dir2/dir3 960s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 960s file:///dir1 file:///dir1/dir2/dir3/ 960s file:///dir1/ file:///dir1/dir2/dir3/ 960s file:///dir1 file:///dir1/dir2/dir3 960s file:///dir1/ file:///dir1/dir2/dir3 960s file:///tmp/ file:///something/ 960s file:///dir1/dir2 file:///dir1/ 960s file:////dir1/new file:////dir1/new/dir2/dir3 960s 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 960s ok 7 /g-file/test_g_file_has_prefix 960s ok 8 /g-file/test_g_file_get_parent_child 960s # End of g-file tests 960s TAP version 14 960s # random seed: R02S44e88524993ec76d1f317e0b68d27e27 960s 1..7 960s # Start of utf8 tests 960s ok 1 /utf8/strlen 960s ok 2 /utf8/strncpy 960s ok 3 /utf8/strrchr 960s ok 4 /utf8/reverse 960s ok 5 /utf8/substring 960s ok 6 /utf8/make-valid 960s ok 7 /utf8/truncate-middle 960s # End of utf8 tests 960s TAP version 14 960s # random seed: R02S9bddd7c56ccf17084785bcc91f85cb5c 960s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 960s TAP version 13 960s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 960s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 960s 1..2 960s ok - glib/power-profile-monitor-portal.test 960s # Running test: glib/spawn-multithreaded.test 960s TAP version 14 960s # random seed: R02S92bd43aa4f0928ca6b7bc477480d0b55 960s 1..4 960s # Start of gthread tests 961s # Child 2599 (ttl 1) exited, status 0 962s # Child 2600 (ttl 2) exited, status 0 962s ok 1 /gthread/spawn-childs 962s # slow test /gthread/spawn-childs executed in 2.00 secs 962s # Created pid: 2604 (ttl 1) 962s # Created pid: 2605 (ttl 2) 963s # Executing: glib/spawn-multithreaded.test 963s # Child 2604 (ttl 1) exited, status 0 964s # Child 2605 (ttl 2) exited, status 0 964s ok 2 /gthread/spawn-childs-threads 964s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 964s ok 3 /gthread/spawn-sync 964s ok 4 /gthread/spawn-async 964s # End of gthread tests 964s ok - glib/spawn-multithreaded.test 964s # Running test: glib/date.test 964s TAP version 14 964s # random seed: R02S22ae906e8cce5aef9048f852934ddb09 964s 1..122 964s # Start of date tests 964s ok 1 /date/basic 964s ok 2 /date/empty 964s ok 3 /date/dmy 964s ok 4 /date/julian 964s ok 5 /date/compare 964s ok 6 /date/dates 964s ok 7 /date/strftime 964s ok 8 /date/two-digit-years 964s ok 9 /date/parse 964s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 964s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 964s ok 11 /date/month_substring 964s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 964s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 964s ok 13 /date/clamp 964s ok 14 /date/order 964s ok 15 /date/copy 964s # Vector 0: 0000-00-00, invalid 964s # Vector 1: 0001-01-01, valid 964s # Vector 2: 0000-01-01, invalid 964s # Vector 3: 2000-02-30, invalid 964s # Vector 4: 2000-02-29, valid 964s # Vector 5: 2001-02-29, invalid 964s # Vector 6: 65535-01-01, valid 964s ok 16 /date/valid-dmy 964s # Considering 2000-01-01 964s # Considering 2000-01-07 964s # Considering 2000-01-08 964s # Considering 2001-01-01 964s # Considering 2001-01-07 964s # Considering 2001-01-08 964s # Considering 2002-01-01 964s # Considering 2002-01-07 964s # Considering 2002-01-08 964s # Considering 2003-01-01 964s # Considering 2003-01-07 964s # Considering 2003-01-08 964s # Considering 2004-01-01 964s # Considering 2004-01-07 964s # Considering 2004-01-08 964s # Considering 2006-01-01 964s # Considering 2006-01-07 964s # Considering 2006-01-08 964s # Considering 2010-01-01 964s # Considering 2010-01-07 964s # Considering 2010-01-08 964s ok 17 /date/week-of-year 964s # Start of parse tests 964s # Test 0 964s # Test 1 964s ok 18 /date/parse/invalid 964s # End of parse tests 964s # Start of year tests 964s ok 19 /date/year/1 964s ok 20 /date/year/2 964s ok 21 /date/year/3 964s ok 22 /date/year/4 964s ok 23 /date/year/5 964s ok 24 /date/year/6 964s ok 25 /date/year/7 964s ok 26 /date/year/8 964s ok 27 /date/year/9 964s ok 28 /date/year/10 964s ok 29 /date/year/11 964s ok 30 /date/year/12 964s ok 31 /date/year/13 964s ok 32 /date/year/14 964s ok 33 /date/year/98 964s ok 34 /date/year/99 964s ok 35 /date/year/100 964s ok 36 /date/year/101 964s ok 37 /date/year/102 964s ok 38 /date/year/103 964s ok 39 /date/year/397 964s ok 40 /date/year/398 964s ok 41 /date/year/399 964s ok 42 /date/year/400 964s ok 43 /date/year/401 964s ok 44 /date/year/402 964s ok 45 /date/year/403 964s ok 46 /date/year/404 964s ok 47 /date/year/405 964s ok 48 /date/year/406 964s ok 49 /date/year/1598 964s ok 50 /date/year/1599 964s ok 51 /date/year/1600 964s ok 52 /date/year/1601 964s ok 53 /date/year/1602 964s ok 54 /date/year/1650 964s ok 55 /date/year/1651 964s ok 56 /date/year/1897 964s ok 57 /date/year/1898 964s ok 58 /date/year/1899 964s ok 59 /date/year/1900 964s ok 60 /date/year/1901 964s ok 61 /date/year/1902 964s ok 62 /date/year/1903 964s ok 63 /date/year/1961 964s ok 64 /date/year/1962 964s ok 65 /date/year/1963 964s ok 66 /date/year/1964 964s ok 67 /date/year/1965 964s ok 68 /date/year/1967 964s ok 69 /date/year/1968 964s ok 70 /date/year/1969 964s ok 71 /date/year/1970 964s ok 72 /date/year/1971 964s ok 73 /date/year/1972 964s ok 74 /date/year/1973 964s ok 75 /date/year/1974 964s ok 76 /date/year/1975 964s ok 77 /date/year/1976 964s ok 78 /date/year/1977 964s ok 79 /date/year/1978 964s ok 80 /date/year/1979 964s ok 81 /date/year/1980 964s ok 82 /date/year/1981 964s ok 83 /date/year/1982 964s ok 84 /date/year/1983 964s ok 85 /date/year/1984 964s ok 86 /date/year/1985 964s ok 87 /date/year/1986 964s ok 88 /date/year/1987 964s ok 89 /date/year/1988 964s ok 90 /date/year/1989 964s ok 91 /date/year/1990 964s ok 92 /date/year/1991 964s ok 93 /date/year/1992 964s ok 94 /date/year/1993 964s ok 95 /date/year/1994 964s ok 96 /date/year/1995 964s ok 97 /date/year/1996 964s ok 98 /date/year/1997 964s ok 99 /date/year/1998 964s ok 100 /date/year/1999 964s ok 101 /date/year/2000 964s ok 102 /date/year/2001 964s ok 103 /date/year/2002 964s ok - glib/date.test 964s ok 104 /date/year/2003 964s ok 105 /date/year/2004 964s ok 106 /date/year/2005 964s ok 107 /date/year/2006 964s ok 108 /date/year/2007 964s ok 109 /date/year/2008 964s ok 110 /date/year/2009 964s ok 111 /date/year/2010 964s ok 112 /date/year/2011 964s ok 113 /date/year/2012 964s ok 114 /date/year/3000 964s ok 115 /date/year/3001 964s ok 116 /date/year/3002 964s ok 117 /date/year/3998 964s ok 118 /date/year/3999 964s ok 119 /date/year/4000 964s ok 120 /date/year/4001 964s ok 121 /date/year/4002 964s ok 122 /date/year/4003 964s # End of year tests 964s # End of date tests 964s # Running test: glib/dbus-appinfo.test 964s TAP version 14 964s # random seed: R02S9d69293c954ba05cc43eaefc16ff5d08 964s 1..7 964s # Start of appinfo tests 964s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/home 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/cache 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/system-config2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/config 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/system-data2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/data 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/state 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/runtime 964s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 964s ok 1 /appinfo/dbusappinfo 964s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/home 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/cache 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/system-config2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/config 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/system-data2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/data 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/state 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/runtime 964s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 964s # Acquired a message bus connection 964s # Acquired the name org.freedesktop.portal.Documents 964s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/config 964s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 964s # fake-document-portal cancelled 964s ok 2 /appinfo/flatpak-doc-export 964s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/home 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/cache 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/config 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/data 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/state 964s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/runtime 964s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 964s # Acquired a message bus connection 964s # Acquired the name org.freedesktop.portal.Documents 964s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/config 965s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 965s # fake-document-portal cancelled 965s ok 3 /appinfo/flatpak-missing-doc-export 965s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/home 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/cache 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/system-config2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/config 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/system-data2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/data 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/state 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/runtime 965s # Acquired a message bus connection 965s # Acquired the name org.freedesktop.portal.Desktop 965s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/config 965s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 965s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 965s # Response emitted 965s # fake-desktop-portal cancelled 965s ok 4 /appinfo/portal-open-file 965s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/home 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/cache 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/system-config2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/config 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/system-data2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/data 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/state 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/runtime 965s # Acquired a message bus connection 965s # Acquired the name org.freedesktop.portal.Desktop 965s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/config 965s # Got open file request for http://example.com 965s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 965s # Response emitted 965s # fake-desktop-portal cancelled 965s ok 5 /appinfo/portal-open-uri 965s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/home 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/cache 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/system-config2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/config 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/system-data2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/data 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/state 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/runtime 965s # Acquired a message bus connection 965s # Acquired the name org.freedesktop.portal.Desktop 965s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/config 965s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 965s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1072530612 965s # Response emitted 965s # fake-desktop-portal cancelled 965s ok 6 /appinfo/portal-open-file-async 965s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/home 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/cache 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/system-config2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/config 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/system-data2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/data 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/state 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/runtime 965s # Acquired a message bus connection 965s # Acquired the name org.freedesktop.portal.Desktop 965s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_AU3ZE3/appinfo/portal-open-uri-async/.dirs/config 965s # Got open file request for http://example.com 965s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1973060067 965s # Response emitted 965s # fake-desktop-portal cancelled 965s ok 7 /appinfo/portal-open-uri-async 965s # End of appinfo tests 965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 965s ok - glib/dbus-appinfo.test 965s # Running test: glib/portal-support-flatpak-none.test 965s TAP version 14 965s # random seed: R02S94d17b62e09779825862e1ba7e2ac046 965s 1..1 965s # Start of portal-support tests 965s # Start of flatpak tests 965s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/home 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/cache 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/system-config2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/config 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/system-data2 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/data 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/state 965s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/runtime 965s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_7HLME3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 965s ok 1 /portal-support/flatpak/none 965s # End of flatpak tests 965s # End of portal-support tests 965s ok - glib/portal-support-flatpak-none.test 965s # Running test: glib/ir-parser.test 965s TAP version 14 965s # random seed: R02S726feebbb0e998e1222c5e3085111e39 965s 1..1 965s # Start of ir-parser tests 965s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: pushing node 1 dummy 965s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: popping node 1 dummy 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: pushing node 1 dummy 965s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: popping node 1 dummy 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: 965s # GLib-GIRepository-DEBUG: pushing node 1 dummy 965s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error 965s # 965s # 965s # 965s # 965s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpaij3w2u5/tmp71vma66u.xml', '--output', '-', '--header'] 965s # Return code: 0 965s # Output: 965s # /* 965s # * This file is generated by gdbus-codegen, do not modify it. 965s # * 965s # * The license of this code is the same as for the D-Bus interface description 965s # * it was derived from. Note that it links to GLib, so must comply with the 965s # * LGPL linking clauses. 965s # */ 965s # 965s # #ifndef __STDOUT__ 965s # #define __STDOUT__ 965s # 965s # #include 965s # 965s # G_BEGIN_DECLS 965s # 965s # 965s # /* ------------------------------------------------------------------------ */ 965s # /* Declarations for org.project.UsefulInterface */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 965s # 965s # struct _OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 965s # 965s # struct _OrgProjectUsefulInterfaceIface 965s # { 965s # GTypeInterface parent_iface; 965s # 965s # gboolean (*handle_useful_method) ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # }; 965s # 965s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 965s # 965s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 965s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 965s # 965s # 965s # /* D-Bus method call completion functions: */ 965s # void org_project_useful_interface_complete_useful_method ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # 965s # 965s # /* D-Bus method calls: */ 965s # void org_project_useful_interface_call_useful_method ( 965s # OrgProjectUsefulInterface *proxy, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_finish ( 965s # OrgProjectUsefulInterface *proxy, 965s # GAsyncResult *res, 965s # GError **error); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_sync ( 965s # OrgProjectUsefulInterface *proxy, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 965s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 965s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceProxy 965s # { 965s # /*< private >*/ 965s # GDBusProxy parent_instance; 965s # OrgProjectUsefulInterfaceProxyPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceProxyClass 965s # { 965s # GDBusProxyClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 965s # #endif 965s # 965s # void org_project_useful_interface_proxy_new ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # void org_project_useful_interface_proxy_new_for_bus ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeleton 965s # { 965s # /*< private >*/ 965s # GDBusInterfaceSkeleton parent_instance; 965s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeletonClass 965s # { 965s # GDBusInterfaceSkeletonClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 965s # #endif 965s # 965s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 965s # 965s # 965s # G_END_DECLS 965s # 965s # #endif /* __STDOUT__ */ 965s # Error: 965s # 965s # /tmp/tmpaij3w2u5/tmpi_btp470.xml: 965s # 965s # 965s # 965s # 965s # 965s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpaij3w2u5/tmpi_btp470.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 965s # Return code: 0 965s # Output: 965s # /* 965s # * This file is generated by gdbus-codegen, do not modify it. 965s # * 965s # * The license of this code is the same as for the D-Bus interface description 965s # * it was derived from. Note that it links to GLib, so must comply with the 965s # * LGPL linking clauses. 965s # */ 965s # 965s # #ifndef __STDOUT__ 965s # #define __STDOUT__ 965s # 965s # #include 965s # 965s # G_BEGIN_DECLS 965s # 965s # 965s # /* ------------------------------------------------------------------------ */ 965s # /* Declarations for org.project.UsefulInterface */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 965s # 965s # struct _OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 965s # 965s # struct _OrgProjectUsefulInterfaceIface 965s # { 965s # GTypeInterface parent_iface; 965s # 965s # gboolean (*handle_useful_method) ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # }; 965s # 965s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 965s # 965s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 965s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 965s # 965s # 965s # /* D-Bus method call completion functions: */ 965s # void org_project_useful_interface_complete_useful_method ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # 965s # 965s # /* D-Bus method calls: */ 965s # void org_project_useful_interface_call_useful_method ( 965s # OrgProjectUsefulInterface *proxy, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_finish ( 965s # OrgProjectUsefulInterface *proxy, 965s # GAsyncResult *res, 965s # GError **error); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_sync ( 965s # OrgProjectUsefulInterface *proxy, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 965s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 965s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceProxy 965s # { 965s # /*< private >*/ 965s # GDBusProxy parent_instance; 965s # OrgProjectUsefulInterfaceProxyPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceProxyClass 965s # { 965s # GDBusProxyClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 965s # #endif 965s # 965s # void org_project_useful_interface_proxy_new ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # void org_project_useful_interface_proxy_new_for_bus ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeleton 965s # { 965s # /*< private >*/ 965s # GDBusInterfaceSkeleton parent_instance; 965s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeletonClass 965s # { 965s # GDBusInterfaceSkeletonClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 965s # #endif 965s # 965s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 965s # 965s # 965s # G_END_DECLS 965s # 965s # #endif /* __STDOUT__ */ 965s # Error: 965s # 965s # /tmp/tmpaij3w2u5/tmpci675ygh.xml: 965s # 965s # 965s # 965s # 965s # 965s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpaij3w2u5/tmpci675ygh.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 965s # Return code: 0 965s # Output: 965s # /* 965s # * This file is generated by gdbus-codegen, do not modify it. 965s # * 965s # * The license of this code is the same as for the D-Bus interface description 965s # * it was derived from. Note that it links to GLib, so must comply with the 965s # * LGPL linking clauses. 965s # */ 965s # 965s # #ifndef __STDOUT__ 965s # #define __STDOUT__ 965s # 965s # #include 965s # 965s # G_BEGIN_DECLS 965s # 965s # 965s # /* ------------------------------------------------------------------------ */ 965s # /* Declarations for org.project.UsefulInterface */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 965s # 965s # struct _OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 965s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 965s # 965s # struct _OrgProjectUsefulInterfaceIface 965s # { 965s # GTypeInterface parent_iface; 965s # 965s # gboolean (*handle_useful_method) ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # }; 965s # 965s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 965s # 965s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 965s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 965s # 965s # 965s # /* D-Bus method call completion functions: */ 965s # void org_project_useful_interface_complete_useful_method ( 965s # OrgProjectUsefulInterface *object, 965s # GDBusMethodInvocation *invocation); 965s # 965s # 965s # 965s # /* D-Bus method calls: */ 965s # void org_project_useful_interface_call_useful_method ( 965s # OrgProjectUsefulInterface *proxy, 965s # GDBusCallFlags call_flags, 965s # gint timeout_msec, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_finish ( 965s # OrgProjectUsefulInterface *proxy, 965s # GAsyncResult *res, 965s # GError **error); 965s # 965s # gboolean org_project_useful_interface_call_useful_method_sync ( 965s # OrgProjectUsefulInterface *proxy, 965s # GDBusCallFlags call_flags, 965s # gint timeout_msec, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 965s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 965s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceProxy 965s # { 965s # /*< private >*/ 965s # GDBusProxy parent_instance; 965s # OrgProjectUsefulInterfaceProxyPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceProxyClass 965s # { 965s # GDBusProxyClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 965s # #endif 965s # 965s # void org_project_useful_interface_proxy_new ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 965s # GDBusConnection *connection, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # void org_project_useful_interface_proxy_new_for_bus ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GAsyncReadyCallback callback, 965s # gpointer user_data); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 965s # GAsyncResult *res, 965s # GError **error); 965s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 965s # GBusType bus_type, 965s # GDBusProxyFlags flags, 965s # const gchar *name, 965s # const gchar *object_path, 965s # GCancellable *cancellable, 965s # GError **error); 965s # 965s # 965s # /* ---- */ 965s # 965s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 965s # 965s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 965s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeleton 965s # { 965s # /*< private >*/ 965s # GDBusInterfaceSkeleton parent_instance; 965s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 965s # }; 965s # 965s # struct _OrgProjectUsefulInterfaceSkeletonClass 965s # { 965s # GDBusInterfaceSkeletonClass parent_class; 965s # }; 965s # 965s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 965s # 965s # #if GLIB_CHECK_VERSION(2, 44, 0) 965s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 965s # #endif 965s # 965s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 965s # 965s # 965s # G_END_DECLS 965s # 965s # #endif /* __STDOUT__ */ 965s # Error: 966s ok 2 __main__.TestCodegen.test_dbus_types 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmp9mulhoqi 966s # /tmp/tmp9mulhoqi/tmpxd0ny0jv.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpxd0ny0jv.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 966s # /tmp/tmp9mulhoqi/tmp_3qyfoza.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp_3qyfoza.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 966s # /tmp/tmp9mulhoqi/tmp27gb_6z3.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp27gb_6z3.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 966s # /tmp/tmp9mulhoqi/tmps8cqakwq.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmps8cqakwq.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 966s # /tmp/tmp9mulhoqi/tmpr6n8ving.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpr6n8ving.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 966s # /tmp/tmp9mulhoqi/tmp56lu03ck.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp56lu03ck.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 966s # /tmp/tmp9mulhoqi/tmpde1fm7uv.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpde1fm7uv.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 966s # /tmp/tmp9mulhoqi/tmp7aqjprkq.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp7aqjprkq.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 966s # /tmp/tmp9mulhoqi/tmpz71x2c1c.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpz71x2c1c.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 966s # /tmp/tmp9mulhoqi/tmpv978yho7.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpv978yho7.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: D-Bus maximum signature length of 255 exceeded. 966s # /tmp/tmp9mulhoqi/tmp86dyhgvw.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp86dyhgvw.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: D-Bus maximum signature length of 255 exceeded. 966s # /tmp/tmp9mulhoqi/tmprx7z419y.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmprx7z419y.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 966s # /tmp/tmp9mulhoqi/tmpl1_a4hnp.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpl1_a4hnp.xml', '--output', '-', '--body'] 966s # Return code: 1 966s # Output: 966s # 966s # Error: 966s # ERROR: D-Bus maximum signature length of 255 exceeded. 966s # /tmp/tmp9mulhoqi/tmp8il6vo2h.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp8il6vo2h.xml', '--output', '-', '--body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # #ifdef G_OS_UNIX 966s # # include 966s # #endif 966s # 966s # #ifdef G_ENABLE_DEBUG 966s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 966s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 966s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 966s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 966s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 966s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 966s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 966s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 966s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 966s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 966s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 966s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 966s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 966s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 966s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 966s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 966s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 966s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 966s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 966s # #else /* !G_ENABLE_DEBUG */ 966s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 966s # * Do not access GValues directly in your code. Instead, use the 966s # * g_value_get_*() functions 966s # */ 966s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 966s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 966s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 966s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 966s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 966s # #endif /* !G_ENABLE_DEBUG */ 966s # 966s # typedef struct 966s # { 966s # GDBusArgInfo parent_struct; 966s # gboolean use_gvariant; 966s # } _ExtendedGDBusArgInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusMethodInfo parent_struct; 966s # const gchar *signal_name; 966s # gboolean pass_fdlist; 966s # } _ExtendedGDBusMethodInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusSignalInfo parent_struct; 966s # const gchar *signal_name; 966s # } _ExtendedGDBusSignalInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusPropertyInfo parent_struct; 966s # const gchar *hyphen_name; 966s # guint use_gvariant : 1; 966s # guint emits_changed_signal : 1; 966s # } _ExtendedGDBusPropertyInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusInterfaceInfo parent_struct; 966s # const gchar *hyphen_name; 966s # } _ExtendedGDBusInterfaceInfo; 966s # 966s # typedef struct 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # guint prop_id; 966s # GValue orig_value; /* the value before the change */ 966s # } ChangedProperty; 966s # 966s # static void 966s # _changed_property_free (ChangedProperty *data) 966s # { 966s # g_value_unset (&data->orig_value); 966s # g_free (data); 966s # } 966s # 966s # static gboolean 966s # _g_strv_equal0 (gchar **a, gchar **b) 966s # { 966s # gboolean ret = FALSE; 966s # guint n; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # if (g_strv_length (a) != g_strv_length (b)) 966s # goto out; 966s # for (n = 0; a[n] != NULL; n++) 966s # if (g_strcmp0 (a[n], b[n]) != 0) 966s # goto out; 966s # ret = TRUE; 966s # out: 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _g_variant_equal0 (GVariant *a, GVariant *b) 966s # { 966s # gboolean ret = FALSE; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # ret = g_variant_equal (a, b); 966s # out: 966s # return ret; 966s # } 966s # 966s # G_GNUC_UNUSED static gboolean 966s # _g_value_equal (const GValue *a, const GValue *b) 966s # { 966s # gboolean ret = FALSE; 966s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 966s # switch (G_VALUE_TYPE (a)) 966s # { 966s # case G_TYPE_BOOLEAN: 966s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 966s # break; 966s # case G_TYPE_UCHAR: 966s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 966s # break; 966s # case G_TYPE_INT: 966s # ret = (g_value_get_int (a) == g_value_get_int (b)); 966s # break; 966s # case G_TYPE_UINT: 966s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 966s # break; 966s # case G_TYPE_INT64: 966s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 966s # break; 966s # case G_TYPE_UINT64: 966s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 966s # break; 966s # case G_TYPE_DOUBLE: 966s # { 966s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 966s # gdouble da = g_value_get_double (a); 966s # gdouble db = g_value_get_double (b); 966s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 966s # } 966s # break; 966s # case G_TYPE_STRING: 966s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 966s # break; 966s # case G_TYPE_VARIANT: 966s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 966s # break; 966s # default: 966s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 966s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 966s # else 966s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 966s # break; 966s # } 966s # return ret; 966s # } 966s # 966s # /* ------------------------------------------------------------------------ 966s # * Code for interface GoodTypes 966s # * ------------------------------------------------------------------------ 966s # */ 966s # 966s # /** 966s # * SECTION:GoodTypes 966s # * @title: GoodTypes 966s # * @short_description: Generated C code for the GoodTypes D-Bus interface 966s # * 966s # * This section contains code for working with the GoodTypes D-Bus interface in C. 966s # */ 966s # 966s # /* ---- Introspection data for GoodTypes ---- */ 966s # 966s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodPropertyType", 966s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 966s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 966s # NULL 966s # }, 966s # "good-property-type", 966s # FALSE, 966s # TRUE 966s # }; 966s # 966s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 966s # { 966s # &_good_types_property_info_good_property_type.parent_struct, 966s # NULL 966s # }; 966s # 966s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodTypes", 966s # NULL, 966s # NULL, 966s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 966s # NULL 966s # }, 966s # "good-types", 966s # }; 966s # 966s # 966s # /** 966s # * good_types_interface_info: 966s # * 966s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 966s # * 966s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 966s # */ 966s # GDBusInterfaceInfo * 966s # good_types_interface_info (void) 966s # { 966s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 966s # } 966s # 966s # /** 966s # * good_types_override_properties: 966s # * @klass: The class structure for a #GObject derived class. 966s # * @property_id_begin: The property id to assign to the first overridden property. 966s # * 966s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 966s # * The properties are overridden in the order they are defined. 966s # * 966s # * Returns: The last property id. 966s # */ 966s # guint 966s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 966s # { 966s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 966s # return property_id_begin - 1; 966s # } 966s # 966s # 966s # 966s # /** 966s # * GoodTypes: 966s # * 966s # * Abstract interface type for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # /** 966s # * GoodTypesIface: 966s # * @parent_iface: The parent interface. 966s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 966s # * 966s # * Virtual table for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # typedef GoodTypesIface GoodTypesInterface; 966s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 966s # 966s # static void 966s # good_types_default_init (GoodTypesIface *iface) 966s # { 966s # /* GObject properties for D-Bus properties: */ 966s # /** 966s # * GoodTypes:good-property-type: 966s # * 966s # * Represents the D-Bus property "GoodPropertyType". 966s # * 966s # * 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. 966s # */ 966s # g_object_interface_install_property (iface, 966s # 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)); 966s # } 966s # 966s # /** 966s # * good_types_get_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets the value of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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. 966s # * 966s # * 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. 966s # */ 966s # GVariant * 966s # good_types_get_good_property_type (GoodTypes *object) 966s # { 966s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 966s # 966s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 966s # } 966s # 966s # /** 966s # * good_types_dup_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets a copy of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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(). 966s # */ 966s # GVariant * 966s # good_types_dup_good_property_type (GoodTypes *object) 966s # { 966s # GVariant *value; 966s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 966s # return value; 966s # } 966s # 966s # /** 966s # * good_types_set_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * @value: The value to set. 966s # * 966s # * Sets the "GoodPropertyType" D-Bus property to @value. 966s # * 966s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 966s # */ 966s # void 966s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 966s # { 966s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesProxy: 966s # * 966s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesProxyClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesProxy. 966s # */ 966s # 966s # struct _GoodTypesProxyPrivate 966s # { 966s # GData *qdata; 966s # }; 966s # 966s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_ADD_PRIVATE (GoodTypesProxy) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_proxy_finalize (GObject *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # g_datalist_clear (&proxy->priv->qdata); 966s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_proxy_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 966s # if (info->use_gvariant) 966s # { 966s # g_value_set_variant (value, variant); 966s # } 966s # else 966s # { 966s # if (variant != NULL) 966s # g_dbus_gvariant_to_gvalue (variant, value); 966s # } 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 966s # GAsyncResult *res, 966s # gpointer user_data) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info = user_data; 966s # GError *error; 966s # GVariant *_ret; 966s # error = NULL; 966s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 966s # if (!_ret) 966s # { 966s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 966s # info->parent_struct.name, 966s # error->message, g_quark_to_string (error->domain), error->code); 966s # g_error_free (error); 966s # } 966s # else 966s # { 966s # g_variant_unref (_ret); 966s # } 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_dbus_proxy_call (G_DBUS_PROXY (object), 966s # "org.freedesktop.DBus.Properties.Set", 966s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_signal (GDBusProxy *proxy, 966s # const gchar *sender_name G_GNUC_UNUSED, 966s # const gchar *signal_name, 966s # GVariant *parameters) 966s # { 966s # _ExtendedGDBusSignalInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # gsize n; 966s # guint signal_id; 966s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 966s # if (info == NULL) 966s # return; 966s # num_params = g_variant_n_children (parameters); 966s # paramv = g_new0 (GValue, num_params + 1); 966s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[0], proxy); 966s # g_variant_iter_init (&iter, parameters); 966s # n = 1; 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_signal_emitv (paramv, signal_id, 0, NULL); 966s # for (n = 0; n < num_params + 1; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 966s # GVariant *changed_properties, 966s # const gchar *const *invalidated_properties) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 966s # guint n; 966s # const gchar *key; 966s # GVariantIter *iter; 966s # _ExtendedGDBusPropertyInfo *info; 966s # g_variant_get (changed_properties, "a{sv}", &iter); 966s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 966s # g_datalist_remove_data (&proxy->priv->qdata, key); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # g_variant_iter_free (iter); 966s # for (n = 0; invalidated_properties[n] != NULL; n++) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 966s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # } 966s # 966s # static GVariant * 966s # good_types_proxy_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # GVariant *variant; 966s # GVariant *value = NULL; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 966s # value = variant; 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_proxy_init (GoodTypesProxy *proxy) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # proxy->priv = good_types_proxy_get_instance_private (proxy); 966s # #else 966s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 966s # #endif 966s # 966s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 966s # } 966s # 966s # static void 966s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusProxyClass *proxy_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_proxy_finalize; 966s # gobject_class->get_property = good_types_proxy_get_property; 966s # gobject_class->set_property = good_types_proxy_set_property; 966s # 966s # proxy_class = G_DBUS_PROXY_CLASS (klass); 966s # proxy_class->g_signal = good_types_proxy_g_signal; 966s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_proxy_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_sync: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_sync ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /** 966s # * good_types_proxy_new_for_bus: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new_for_bus ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new_for_bus(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_sync: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_sync ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesSkeleton: 966s # * 966s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesSkeletonClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesSkeleton. 966s # */ 966s # 966s # struct _GoodTypesSkeletonPrivate 966s # { 966s # GValue *properties; 966s # GList *changed_properties; 966s # GSource *changed_properties_idle_source; 966s # GMainContext *context; 966s # GMutex lock; 966s # }; 966s # 966s # static void 966s # _good_types_skeleton_handle_method_call ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name, 966s # const gchar *method_name, 966s # GVariant *parameters, 966s # GDBusMethodInvocation *invocation, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # _ExtendedGDBusMethodInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # guint num_extra; 966s # gsize n; 966s # guint signal_id; 966s # GValue return_value = G_VALUE_INIT; 966s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 966s # g_assert (info != NULL); 966s # num_params = g_variant_n_children (parameters); 966s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 966s # n = 0; 966s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[n++], skeleton); 966s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 966s # g_value_set_object (¶mv[n++], invocation); 966s # if (info->pass_fdlist) 966s # { 966s # #ifdef G_OS_UNIX 966s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 966s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 966s # #else 966s # g_assert_not_reached (); 966s # #endif 966s # } 966s # g_variant_iter_init (&iter, parameters); 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_value_init (&return_value, G_TYPE_BOOLEAN); 966s # g_signal_emitv (paramv, signal_id, 0, &return_value); 966s # if (!g_value_get_boolean (&return_value)) 966s # 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); 966s # g_value_unset (&return_value); 966s # for (n = 0; n < num_params + num_extra; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static GVariant * 966s # _good_types_skeleton_handle_get_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # GVariant *ret; 966s # ret = NULL; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # g_value_init (&value, pspec->value_type); 966s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_value_unset (&value); 966s # } 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _good_types_skeleton_handle_set_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GVariant *variant, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # gboolean ret; 966s # ret = FALSE; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # if (info->use_gvariant) 966s # g_value_set_variant (&value, variant); 966s # else 966s # g_dbus_gvariant_to_gvalue (variant, &value); 966s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # g_value_unset (&value); 966s # ret = TRUE; 966s # } 966s # return ret; 966s # } 966s # 966s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 966s # { 966s # _good_types_skeleton_handle_method_call, 966s # _good_types_skeleton_handle_get_property, 966s # _good_types_skeleton_handle_set_property, 966s # {NULL} 966s # }; 966s # 966s # static GDBusInterfaceInfo * 966s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return good_types_interface_info (); 966s # } 966s # 966s # static GDBusInterfaceVTable * 966s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # 966s # GVariantBuilder builder; 966s # guint n; 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #else 966s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #endif 966s # if (_good_types_interface_info.parent_struct.properties == NULL) 966s # goto out; 966s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 966s # { 966s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 966s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 966s # { 966s # GVariant *value; 966s # 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); 966s # if (value != NULL) 966s # { 966s # g_variant_take_ref (value); 966s # g_variant_builder_add (&builder, "{sv}", info->name, value); 966s # g_variant_unref (value); 966s # } 966s # } 966s # } 966s # out: 966s # return g_variant_builder_end (&builder); 966s # } 966s # 966s # static gboolean _good_types_emit_changed (gpointer user_data); 966s # 966s # static void 966s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # gboolean emit_changed = FALSE; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # { 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # emit_changed = TRUE; 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # 966s # if (emit_changed) 966s # _good_types_emit_changed (skeleton); 966s # } 966s # 966s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_ADD_PRIVATE (GoodTypesSkeleton) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_skeleton_finalize (GObject *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # guint n; 966s # for (n = 0; n < 1; n++) 966s # g_value_unset (&skeleton->priv->properties[n]); 966s # g_free (skeleton->priv->properties); 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # g_main_context_unref (skeleton->priv->context); 966s # g_mutex_clear (&skeleton->priv->lock); 966s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static gboolean 966s # _good_types_emit_changed (gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GList *l; 966s # GVariantBuilder builder; 966s # GVariantBuilder invalidated_builder; 966s # guint num_changes; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #else 966s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #endif 966s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *cp = l->data; 966s # GVariant *variant; 966s # const GValue *cur_value; 966s # 966s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 966s # if (!_g_value_equal (cur_value, &cp->orig_value)) 966s # { 966s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 966s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 966s # g_variant_unref (variant); 966s # num_changes++; 966s # } 966s # } 966s # if (num_changes > 0) 966s # { 966s # GList *connections, *ll; 966s # GVariant *signal_variant; 966s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 966s # &builder, &invalidated_builder)); 966s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 966s # for (ll = connections; ll != NULL; ll = ll->next) 966s # { 966s # GDBusConnection *connection = ll->data; 966s # 966s # g_dbus_connection_emit_signal (connection, 966s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 966s # "org.freedesktop.DBus.Properties", 966s # "PropertiesChanged", 966s # signal_variant, 966s # NULL); 966s # } 966s # g_variant_unref (signal_variant); 966s # g_list_free_full (connections, g_object_unref); 966s # } 966s # else 966s # { 966s # g_variant_builder_clear (&builder); 966s # g_variant_builder_clear (&invalidated_builder); 966s # } 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # skeleton->priv->changed_properties = NULL; 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return FALSE; 966s # } 966s # 966s # static void 966s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 966s # { 966s # ChangedProperty *cp; 966s # GList *l; 966s # cp = NULL; 966s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *i_cp = l->data; 966s # if (i_cp->info == info) 966s # { 966s # cp = i_cp; 966s # break; 966s # } 966s # } 966s # if (cp == NULL) 966s # { 966s # cp = g_new0 (ChangedProperty, 1); 966s # cp->prop_id = prop_id; 966s # cp->info = info; 966s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 966s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 966s # g_value_copy (orig_value, &cp->orig_value); 966s # } 966s # } 966s # 966s # static void 966s # good_types_skeleton_notify (GObject *object, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties != NULL && 966s # skeleton->priv->changed_properties_idle_source == NULL) 966s # { 966s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 966s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 966s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 966s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 966s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 966s # g_source_unref (skeleton->priv->changed_properties_idle_source); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static void 966s # good_types_skeleton_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_object_freeze_notify (object); 966s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 966s # { 966s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 966s # info->emits_changed_signal) 966s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 966s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 966s # g_object_notify_by_pspec (object, pspec); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # g_object_thaw_notify (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 966s # #else 966s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 966s # #endif 966s # 966s # g_mutex_init (&skeleton->priv->lock); 966s # skeleton->priv->context = g_main_context_ref_thread_default (); 966s # skeleton->priv->properties = g_new0 (GValue, 1); 966s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # GVariant *value; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusInterfaceSkeletonClass *skeleton_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_skeleton_finalize; 966s # gobject_class->get_property = good_types_skeleton_get_property; 966s # gobject_class->set_property = good_types_skeleton_set_property; 966s # gobject_class->notify = good_types_skeleton_notify; 966s # 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 966s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 966s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 966s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 966s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_skeleton_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_skeleton_new: 966s # * 966s # * Creates a skeleton object for the D-Bus interface GoodTypes. 966s # * 966s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 966s # */ 966s # GoodTypes * 966s # good_types_skeleton_new (void) 966s # { 966s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 966s # } 966s # Error: 966s # 966s # /tmp/tmp9mulhoqi/tmpqxbff0x4.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmpqxbff0x4.xml', '--output', '-', '--body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # #ifdef G_OS_UNIX 966s # # include 966s # #endif 966s # 966s # #ifdef G_ENABLE_DEBUG 966s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 966s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 966s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 966s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 966s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 966s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 966s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 966s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 966s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 966s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 966s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 966s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 966s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 966s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 966s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 966s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 966s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 966s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 966s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 966s # #else /* !G_ENABLE_DEBUG */ 966s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 966s # * Do not access GValues directly in your code. Instead, use the 966s # * g_value_get_*() functions 966s # */ 966s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 966s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 966s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 966s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 966s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 966s # #endif /* !G_ENABLE_DEBUG */ 966s # 966s # typedef struct 966s # { 966s # GDBusArgInfo parent_struct; 966s # gboolean use_gvariant; 966s # } _ExtendedGDBusArgInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusMethodInfo parent_struct; 966s # const gchar *signal_name; 966s # gboolean pass_fdlist; 966s # } _ExtendedGDBusMethodInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusSignalInfo parent_struct; 966s # const gchar *signal_name; 966s # } _ExtendedGDBusSignalInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusPropertyInfo parent_struct; 966s # const gchar *hyphen_name; 966s # guint use_gvariant : 1; 966s # guint emits_changed_signal : 1; 966s # } _ExtendedGDBusPropertyInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusInterfaceInfo parent_struct; 966s # const gchar *hyphen_name; 966s # } _ExtendedGDBusInterfaceInfo; 966s # 966s # typedef struct 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # guint prop_id; 966s # GValue orig_value; /* the value before the change */ 966s # } ChangedProperty; 966s # 966s # static void 966s # _changed_property_free (ChangedProperty *data) 966s # { 966s # g_value_unset (&data->orig_value); 966s # g_free (data); 966s # } 966s # 966s # static gboolean 966s # _g_strv_equal0 (gchar **a, gchar **b) 966s # { 966s # gboolean ret = FALSE; 966s # guint n; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # if (g_strv_length (a) != g_strv_length (b)) 966s # goto out; 966s # for (n = 0; a[n] != NULL; n++) 966s # if (g_strcmp0 (a[n], b[n]) != 0) 966s # goto out; 966s # ret = TRUE; 966s # out: 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _g_variant_equal0 (GVariant *a, GVariant *b) 966s # { 966s # gboolean ret = FALSE; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # ret = g_variant_equal (a, b); 966s # out: 966s # return ret; 966s # } 966s # 966s # G_GNUC_UNUSED static gboolean 966s # _g_value_equal (const GValue *a, const GValue *b) 966s # { 966s # gboolean ret = FALSE; 966s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 966s # switch (G_VALUE_TYPE (a)) 966s # { 966s # case G_TYPE_BOOLEAN: 966s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 966s # break; 966s # case G_TYPE_UCHAR: 966s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 966s # break; 966s # case G_TYPE_INT: 966s # ret = (g_value_get_int (a) == g_value_get_int (b)); 966s # break; 966s # case G_TYPE_UINT: 966s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 966s # break; 966s # case G_TYPE_INT64: 966s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 966s # break; 966s # case G_TYPE_UINT64: 966s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 966s # break; 966s # case G_TYPE_DOUBLE: 966s # { 966s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 966s # gdouble da = g_value_get_double (a); 966s # gdouble db = g_value_get_double (b); 966s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 966s # } 966s # break; 966s # case G_TYPE_STRING: 966s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 966s # break; 966s # case G_TYPE_VARIANT: 966s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 966s # break; 966s # default: 966s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 966s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 966s # else 966s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 966s # break; 966s # } 966s # return ret; 966s # } 966s # 966s # /* ------------------------------------------------------------------------ 966s # * Code for interface GoodTypes 966s # * ------------------------------------------------------------------------ 966s # */ 966s # 966s # /** 966s # * SECTION:GoodTypes 966s # * @title: GoodTypes 966s # * @short_description: Generated C code for the GoodTypes D-Bus interface 966s # * 966s # * This section contains code for working with the GoodTypes D-Bus interface in C. 966s # */ 966s # 966s # /* ---- Introspection data for GoodTypes ---- */ 966s # 966s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodPropertyType", 966s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 966s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 966s # NULL 966s # }, 966s # "good-property-type", 966s # FALSE, 966s # TRUE 966s # }; 966s # 966s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 966s # { 966s # &_good_types_property_info_good_property_type.parent_struct, 966s # NULL 966s # }; 966s # 966s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodTypes", 966s # NULL, 966s # NULL, 966s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 966s # NULL 966s # }, 966s # "good-types", 966s # }; 966s # 966s # 966s # /** 966s # * good_types_interface_info: 966s # * 966s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 966s # * 966s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 966s # */ 966s # GDBusInterfaceInfo * 966s # good_types_interface_info (void) 966s # { 966s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 966s # } 966s # 966s # /** 966s # * good_types_override_properties: 966s # * @klass: The class structure for a #GObject derived class. 966s # * @property_id_begin: The property id to assign to the first overridden property. 966s # * 966s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 966s # * The properties are overridden in the order they are defined. 966s # * 966s # * Returns: The last property id. 966s # */ 966s # guint 966s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 966s # { 966s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 966s # return property_id_begin - 1; 966s # } 966s # 966s # 966s # 966s # /** 966s # * GoodTypes: 966s # * 966s # * Abstract interface type for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # /** 966s # * GoodTypesIface: 966s # * @parent_iface: The parent interface. 966s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 966s # * 966s # * Virtual table for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # typedef GoodTypesIface GoodTypesInterface; 966s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 966s # 966s # static void 966s # good_types_default_init (GoodTypesIface *iface) 966s # { 966s # /* GObject properties for D-Bus properties: */ 966s # /** 966s # * GoodTypes:good-property-type: 966s # * 966s # * Represents the D-Bus property "GoodPropertyType". 966s # * 966s # * 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. 966s # */ 966s # g_object_interface_install_property (iface, 966s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 966s # } 966s # 966s # /** 966s # * good_types_get_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets the value of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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. 966s # * 966s # * 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. 966s # */ 966s # GVariant * 966s # good_types_get_good_property_type (GoodTypes *object) 966s # { 966s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 966s # 966s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 966s # } 966s # 966s # /** 966s # * good_types_dup_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets a copy of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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(). 966s # */ 966s # GVariant * 966s # good_types_dup_good_property_type (GoodTypes *object) 966s # { 966s # GVariant *value; 966s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 966s # return value; 966s # } 966s # 966s # /** 966s # * good_types_set_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * @value: The value to set. 966s # * 966s # * Sets the "GoodPropertyType" D-Bus property to @value. 966s # * 966s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 966s # */ 966s # void 966s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 966s # { 966s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesProxy: 966s # * 966s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesProxyClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesProxy. 966s # */ 966s # 966s # struct _GoodTypesProxyPrivate 966s # { 966s # GData *qdata; 966s # }; 966s # 966s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_ADD_PRIVATE (GoodTypesProxy) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_proxy_finalize (GObject *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # g_datalist_clear (&proxy->priv->qdata); 966s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_proxy_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 966s # if (info->use_gvariant) 966s # { 966s # g_value_set_variant (value, variant); 966s # } 966s # else 966s # { 966s # if (variant != NULL) 966s # g_dbus_gvariant_to_gvalue (variant, value); 966s # } 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 966s # GAsyncResult *res, 966s # gpointer user_data) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info = user_data; 966s # GError *error; 966s # GVariant *_ret; 966s # error = NULL; 966s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 966s # if (!_ret) 966s # { 966s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 966s # info->parent_struct.name, 966s # error->message, g_quark_to_string (error->domain), error->code); 966s # g_error_free (error); 966s # } 966s # else 966s # { 966s # g_variant_unref (_ret); 966s # } 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_dbus_proxy_call (G_DBUS_PROXY (object), 966s # "org.freedesktop.DBus.Properties.Set", 966s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_signal (GDBusProxy *proxy, 966s # const gchar *sender_name G_GNUC_UNUSED, 966s # const gchar *signal_name, 966s # GVariant *parameters) 966s # { 966s # _ExtendedGDBusSignalInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # gsize n; 966s # guint signal_id; 966s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 966s # if (info == NULL) 966s # return; 966s # num_params = g_variant_n_children (parameters); 966s # paramv = g_new0 (GValue, num_params + 1); 966s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[0], proxy); 966s # g_variant_iter_init (&iter, parameters); 966s # n = 1; 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_signal_emitv (paramv, signal_id, 0, NULL); 966s # for (n = 0; n < num_params + 1; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 966s # GVariant *changed_properties, 966s # const gchar *const *invalidated_properties) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 966s # guint n; 966s # const gchar *key; 966s # GVariantIter *iter; 966s # _ExtendedGDBusPropertyInfo *info; 966s # g_variant_get (changed_properties, "a{sv}", &iter); 966s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 966s # g_datalist_remove_data (&proxy->priv->qdata, key); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # g_variant_iter_free (iter); 966s # for (n = 0; invalidated_properties[n] != NULL; n++) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 966s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # } 966s # 966s # static GVariant * 966s # good_types_proxy_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # GVariant *variant; 966s # GVariant *value = NULL; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 966s # value = variant; 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_proxy_init (GoodTypesProxy *proxy) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # proxy->priv = good_types_proxy_get_instance_private (proxy); 966s # #else 966s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 966s # #endif 966s # 966s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 966s # } 966s # 966s # static void 966s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusProxyClass *proxy_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_proxy_finalize; 966s # gobject_class->get_property = good_types_proxy_get_property; 966s # gobject_class->set_property = good_types_proxy_set_property; 966s # 966s # proxy_class = G_DBUS_PROXY_CLASS (klass); 966s # proxy_class->g_signal = good_types_proxy_g_signal; 966s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_proxy_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_sync: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_sync ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /** 966s # * good_types_proxy_new_for_bus: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new_for_bus ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new_for_bus(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_sync: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_sync ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesSkeleton: 966s # * 966s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesSkeletonClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesSkeleton. 966s # */ 966s # 966s # struct _GoodTypesSkeletonPrivate 966s # { 966s # GValue *properties; 966s # GList *changed_properties; 966s # GSource *changed_properties_idle_source; 966s # GMainContext *context; 966s # GMutex lock; 966s # }; 966s # 966s # static void 966s # _good_types_skeleton_handle_method_call ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name, 966s # const gchar *method_name, 966s # GVariant *parameters, 966s # GDBusMethodInvocation *invocation, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # _ExtendedGDBusMethodInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # guint num_extra; 966s # gsize n; 966s # guint signal_id; 966s # GValue return_value = G_VALUE_INIT; 966s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 966s # g_assert (info != NULL); 966s # num_params = g_variant_n_children (parameters); 966s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 966s # n = 0; 966s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[n++], skeleton); 966s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 966s # g_value_set_object (¶mv[n++], invocation); 966s # if (info->pass_fdlist) 966s # { 966s # #ifdef G_OS_UNIX 966s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 966s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 966s # #else 966s # g_assert_not_reached (); 966s # #endif 966s # } 966s # g_variant_iter_init (&iter, parameters); 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_value_init (&return_value, G_TYPE_BOOLEAN); 966s # g_signal_emitv (paramv, signal_id, 0, &return_value); 966s # if (!g_value_get_boolean (&return_value)) 966s # 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); 966s # g_value_unset (&return_value); 966s # for (n = 0; n < num_params + num_extra; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static GVariant * 966s # _good_types_skeleton_handle_get_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # GVariant *ret; 966s # ret = NULL; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # g_value_init (&value, pspec->value_type); 966s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_value_unset (&value); 966s # } 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _good_types_skeleton_handle_set_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GVariant *variant, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # gboolean ret; 966s # ret = FALSE; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # if (info->use_gvariant) 966s # g_value_set_variant (&value, variant); 966s # else 966s # g_dbus_gvariant_to_gvalue (variant, &value); 966s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # g_value_unset (&value); 966s # ret = TRUE; 966s # } 966s # return ret; 966s # } 966s # 966s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 966s # { 966s # _good_types_skeleton_handle_method_call, 966s # _good_types_skeleton_handle_get_property, 966s # _good_types_skeleton_handle_set_property, 966s # {NULL} 966s # }; 966s # 966s # static GDBusInterfaceInfo * 966s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return good_types_interface_info (); 966s # } 966s # 966s # static GDBusInterfaceVTable * 966s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # 966s # GVariantBuilder builder; 966s # guint n; 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #else 966s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #endif 966s # if (_good_types_interface_info.parent_struct.properties == NULL) 966s # goto out; 966s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 966s # { 966s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 966s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 966s # { 966s # GVariant *value; 966s # 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); 966s # if (value != NULL) 966s # { 966s # g_variant_take_ref (value); 966s # g_variant_builder_add (&builder, "{sv}", info->name, value); 966s # g_variant_unref (value); 966s # } 966s # } 966s # } 966s # out: 966s # return g_variant_builder_end (&builder); 966s # } 966s # 966s # static gboolean _good_types_emit_changed (gpointer user_data); 966s # 966s # static void 966s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # gboolean emit_changed = FALSE; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # { 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # emit_changed = TRUE; 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # 966s # if (emit_changed) 966s # _good_types_emit_changed (skeleton); 966s # } 966s # 966s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_ADD_PRIVATE (GoodTypesSkeleton) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_skeleton_finalize (GObject *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # guint n; 966s # for (n = 0; n < 1; n++) 966s # g_value_unset (&skeleton->priv->properties[n]); 966s # g_free (skeleton->priv->properties); 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # g_main_context_unref (skeleton->priv->context); 966s # g_mutex_clear (&skeleton->priv->lock); 966s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static gboolean 966s # _good_types_emit_changed (gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GList *l; 966s # GVariantBuilder builder; 966s # GVariantBuilder invalidated_builder; 966s # guint num_changes; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #else 966s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #endif 966s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *cp = l->data; 966s # GVariant *variant; 966s # const GValue *cur_value; 966s # 966s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 966s # if (!_g_value_equal (cur_value, &cp->orig_value)) 966s # { 966s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 966s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 966s # g_variant_unref (variant); 966s # num_changes++; 966s # } 966s # } 966s # if (num_changes > 0) 966s # { 966s # GList *connections, *ll; 966s # GVariant *signal_variant; 966s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 966s # &builder, &invalidated_builder)); 966s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 966s # for (ll = connections; ll != NULL; ll = ll->next) 966s # { 966s # GDBusConnection *connection = ll->data; 966s # 966s # g_dbus_connection_emit_signal (connection, 966s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 966s # "org.freedesktop.DBus.Properties", 966s # "PropertiesChanged", 966s # signal_variant, 966s # NULL); 966s # } 966s # g_variant_unref (signal_variant); 966s # g_list_free_full (connections, g_object_unref); 966s # } 966s # else 966s # { 966s # g_variant_builder_clear (&builder); 966s # g_variant_builder_clear (&invalidated_builder); 966s # } 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # skeleton->priv->changed_properties = NULL; 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return FALSE; 966s # } 966s # 966s # static void 966s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 966s # { 966s # ChangedProperty *cp; 966s # GList *l; 966s # cp = NULL; 966s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *i_cp = l->data; 966s # if (i_cp->info == info) 966s # { 966s # cp = i_cp; 966s # break; 966s # } 966s # } 966s # if (cp == NULL) 966s # { 966s # cp = g_new0 (ChangedProperty, 1); 966s # cp->prop_id = prop_id; 966s # cp->info = info; 966s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 966s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 966s # g_value_copy (orig_value, &cp->orig_value); 966s # } 966s # } 966s # 966s # static void 966s # good_types_skeleton_notify (GObject *object, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties != NULL && 966s # skeleton->priv->changed_properties_idle_source == NULL) 966s # { 966s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 966s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 966s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 966s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 966s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 966s # g_source_unref (skeleton->priv->changed_properties_idle_source); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static void 966s # good_types_skeleton_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_object_freeze_notify (object); 966s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 966s # { 966s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 966s # info->emits_changed_signal) 966s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 966s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 966s # g_object_notify_by_pspec (object, pspec); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # g_object_thaw_notify (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 966s # #else 966s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 966s # #endif 966s # 966s # g_mutex_init (&skeleton->priv->lock); 966s # skeleton->priv->context = g_main_context_ref_thread_default (); 966s # skeleton->priv->properties = g_new0 (GValue, 1); 966s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # GVariant *value; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusInterfaceSkeletonClass *skeleton_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_skeleton_finalize; 966s # gobject_class->get_property = good_types_skeleton_get_property; 966s # gobject_class->set_property = good_types_skeleton_set_property; 966s # gobject_class->notify = good_types_skeleton_notify; 966s # 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 966s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 966s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 966s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 966s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_skeleton_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_skeleton_new: 966s # * 966s # * Creates a skeleton object for the D-Bus interface GoodTypes. 966s # * 966s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 966s # */ 966s # GoodTypes * 966s # good_types_skeleton_new (void) 966s # { 966s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 966s # } 966s # Error: 966s # 966s # /tmp/tmp9mulhoqi/tmp8701da0u.xml: 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mulhoqi/tmp8701da0u.xml', '--output', '-', '--body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # #ifdef G_OS_UNIX 966s # # include 966s # #endif 966s # 966s # #ifdef G_ENABLE_DEBUG 966s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 966s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 966s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 966s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 966s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 966s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 966s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 966s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 966s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 966s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 966s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 966s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 966s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 966s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 966s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 966s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 966s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 966s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 966s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 966s # #else /* !G_ENABLE_DEBUG */ 966s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 966s # * Do not access GValues directly in your code. Instead, use the 966s # * g_value_get_*() functions 966s # */ 966s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 966s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 966s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 966s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 966s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 966s # #endif /* !G_ENABLE_DEBUG */ 966s # 966s # typedef struct 966s # { 966s # GDBusArgInfo parent_struct; 966s # gboolean use_gvariant; 966s # } _ExtendedGDBusArgInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusMethodInfo parent_struct; 966s # const gchar *signal_name; 966s # gboolean pass_fdlist; 966s # } _ExtendedGDBusMethodInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusSignalInfo parent_struct; 966s # const gchar *signal_name; 966s # } _ExtendedGDBusSignalInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusPropertyInfo parent_struct; 966s # const gchar *hyphen_name; 966s # guint use_gvariant : 1; 966s # guint emits_changed_signal : 1; 966s # } _ExtendedGDBusPropertyInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusInterfaceInfo parent_struct; 966s # const gchar *hyphen_name; 966s # } _ExtendedGDBusInterfaceInfo; 966s # 966s # typedef struct 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # guint prop_id; 966s # GValue orig_value; /* the value before the change */ 966s # } ChangedProperty; 966s # 966s # static void 966s # _changed_property_free (ChangedProperty *data) 966s # { 966s # g_value_unset (&data->orig_value); 966s # g_free (data); 966s # } 966s # 966s # static gboolean 966s # _g_strv_equal0 (gchar **a, gchar **b) 966s # { 966s # gboolean ret = FALSE; 966s # guint n; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # if (g_strv_length (a) != g_strv_length (b)) 966s # goto out; 966s # for (n = 0; a[n] != NULL; n++) 966s # if (g_strcmp0 (a[n], b[n]) != 0) 966s # goto out; 966s # ret = TRUE; 966s # out: 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _g_variant_equal0 (GVariant *a, GVariant *b) 966s # { 966s # gboolean ret = FALSE; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # ret = g_variant_equal (a, b); 966s # out: 966s # return ret; 966s # } 966s # 966s # G_GNUC_UNUSED static gboolean 966s # _g_value_equal (const GValue *a, const GValue *b) 966s # { 966s # gboolean ret = FALSE; 966s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 966s # switch (G_VALUE_TYPE (a)) 966s # { 966s # case G_TYPE_BOOLEAN: 966s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 966s # break; 966s # case G_TYPE_UCHAR: 966s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 966s # break; 966s # case G_TYPE_INT: 966s # ret = (g_value_get_int (a) == g_value_get_int (b)); 966s # break; 966s # case G_TYPE_UINT: 966s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 966s # break; 966s # case G_TYPE_INT64: 966s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 966s # break; 966s # case G_TYPE_UINT64: 966s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 966s # break; 966s # case G_TYPE_DOUBLE: 966s # { 966s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 966s # gdouble da = g_value_get_double (a); 966s # gdouble db = g_value_get_double (b); 966s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 966s # } 966s # break; 966s # case G_TYPE_STRING: 966s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 966s # break; 966s # case G_TYPE_VARIANT: 966s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 966s # break; 966s # default: 966s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 966s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 966s # else 966s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 966s # break; 966s # } 966s # return ret; 966s # } 966s # 966s # /* ------------------------------------------------------------------------ 966s # * Code for interface GoodTypes 966s # * ------------------------------------------------------------------------ 966s # */ 966s # 966s # /** 966s # * SECTION:GoodTypes 966s # * @title: GoodTypes 966s # * @short_description: Generated C code for the GoodTypes D-Bus interface 966s # * 966s # * This section contains code for working with the GoodTypes D-Bus interface in C. 966s # */ 966s # 966s # /* ---- Introspection data for GoodTypes ---- */ 966s # 966s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodPropertyType", 966s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 966s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 966s # NULL 966s # }, 966s # "good-property-type", 966s # FALSE, 966s # TRUE 966s # }; 966s # 966s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 966s # { 966s # &_good_types_property_info_good_property_type.parent_struct, 966s # NULL 966s # }; 966s # 966s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 966s # { 966s # { 966s # -1, 966s # (gchar *) "GoodTypes", 966s # NULL, 966s # NULL, 966s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 966s # NULL 966s # }, 966s # "good-types", 966s # }; 966s # 966s # 966s # /** 966s # * good_types_interface_info: 966s # * 966s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 966s # * 966s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 966s # */ 966s # GDBusInterfaceInfo * 966s # good_types_interface_info (void) 966s # { 966s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 966s # } 966s # 966s # /** 966s # * good_types_override_properties: 966s # * @klass: The class structure for a #GObject derived class. 966s # * @property_id_begin: The property id to assign to the first overridden property. 966s # * 966s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 966s # * The properties are overridden in the order they are defined. 966s # * 966s # * Returns: The last property id. 966s # */ 966s # guint 966s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 966s # { 966s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 966s # return property_id_begin - 1; 966s # } 966s # 966s # 966s # 966s # /** 966s # * GoodTypes: 966s # * 966s # * Abstract interface type for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # /** 966s # * GoodTypesIface: 966s # * @parent_iface: The parent interface. 966s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 966s # * 966s # * Virtual table for the D-Bus interface GoodTypes. 966s # */ 966s # 966s # typedef GoodTypesIface GoodTypesInterface; 966s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 966s # 966s # static void 966s # good_types_default_init (GoodTypesIface *iface) 966s # { 966s # /* GObject properties for D-Bus properties: */ 966s # /** 966s # * GoodTypes:good-property-type: 966s # * 966s # * Represents the D-Bus property "GoodPropertyType". 966s # * 966s # * 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. 966s # */ 966s # g_object_interface_install_property (iface, 966s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 966s # } 966s # 966s # /** 966s # * good_types_get_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets the value of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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. 966s # * 966s # * 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. 966s # */ 966s # GVariant * 966s # good_types_get_good_property_type (GoodTypes *object) 966s # { 966s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 966s # 966s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 966s # } 966s # 966s # /** 966s # * good_types_dup_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * 966s # * Gets a copy of the "GoodPropertyType" D-Bus property. 966s # * 966s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 966s # * 966s # * 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(). 966s # */ 966s # GVariant * 966s # good_types_dup_good_property_type (GoodTypes *object) 966s # { 966s # GVariant *value; 966s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 966s # return value; 966s # } 966s # 966s # /** 966s # * good_types_set_good_property_type: (skip) 966s # * @object: A GoodTypes. 966s # * @value: The value to set. 966s # * 966s # * Sets the "GoodPropertyType" D-Bus property to @value. 966s # * 966s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 966s # */ 966s # void 966s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 966s # { 966s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesProxy: 966s # * 966s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesProxyClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesProxy. 966s # */ 966s # 966s # struct _GoodTypesProxyPrivate 966s # { 966s # GData *qdata; 966s # }; 966s # 966s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_ADD_PRIVATE (GoodTypesProxy) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_proxy_finalize (GObject *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # g_datalist_clear (&proxy->priv->qdata); 966s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_proxy_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 966s # if (info->use_gvariant) 966s # { 966s # g_value_set_variant (value, variant); 966s # } 966s # else 966s # { 966s # if (variant != NULL) 966s # g_dbus_gvariant_to_gvalue (variant, value); 966s # } 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 966s # GAsyncResult *res, 966s # gpointer user_data) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info = user_data; 966s # GError *error; 966s # GVariant *_ret; 966s # error = NULL; 966s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 966s # if (!_ret) 966s # { 966s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 966s # info->parent_struct.name, 966s # error->message, g_quark_to_string (error->domain), error->code); 966s # g_error_free (error); 966s # } 966s # else 966s # { 966s # g_variant_unref (_ret); 966s # } 966s # } 966s # 966s # static void 966s # good_types_proxy_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GVariant *variant; 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_dbus_proxy_call (G_DBUS_PROXY (object), 966s # "org.freedesktop.DBus.Properties.Set", 966s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 966s # g_variant_unref (variant); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_signal (GDBusProxy *proxy, 966s # const gchar *sender_name G_GNUC_UNUSED, 966s # const gchar *signal_name, 966s # GVariant *parameters) 966s # { 966s # _ExtendedGDBusSignalInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # gsize n; 966s # guint signal_id; 966s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 966s # if (info == NULL) 966s # return; 966s # num_params = g_variant_n_children (parameters); 966s # paramv = g_new0 (GValue, num_params + 1); 966s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[0], proxy); 966s # g_variant_iter_init (&iter, parameters); 966s # n = 1; 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_signal_emitv (paramv, signal_id, 0, NULL); 966s # for (n = 0; n < num_params + 1; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static void 966s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 966s # GVariant *changed_properties, 966s # const gchar *const *invalidated_properties) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 966s # guint n; 966s # const gchar *key; 966s # GVariantIter *iter; 966s # _ExtendedGDBusPropertyInfo *info; 966s # g_variant_get (changed_properties, "a{sv}", &iter); 966s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 966s # g_datalist_remove_data (&proxy->priv->qdata, key); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # g_variant_iter_free (iter); 966s # for (n = 0; invalidated_properties[n] != NULL; n++) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 966s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # } 966s # 966s # static GVariant * 966s # good_types_proxy_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 966s # GVariant *variant; 966s # GVariant *value = NULL; 966s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 966s # value = variant; 966s # if (variant != NULL) 966s # g_variant_unref (variant); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_proxy_init (GoodTypesProxy *proxy) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # proxy->priv = good_types_proxy_get_instance_private (proxy); 966s # #else 966s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 966s # #endif 966s # 966s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 966s # } 966s # 966s # static void 966s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusProxyClass *proxy_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_proxy_finalize; 966s # gobject_class->get_property = good_types_proxy_get_property; 966s # gobject_class->set_property = good_types_proxy_set_property; 966s # 966s # proxy_class = G_DBUS_PROXY_CLASS (klass); 966s # proxy_class->g_signal = good_types_proxy_g_signal; 966s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_proxy_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_sync: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_sync ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /** 966s # * good_types_proxy_new_for_bus: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 966s # * 966s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # good_types_proxy_new_for_bus ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with good_types_proxy_new_for_bus(). 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * good_types_proxy_new_for_bus_sync: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # GoodTypes * 966s # good_types_proxy_new_for_bus_sync ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return GOOD_TYPES (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * GoodTypesSkeleton: 966s # * 966s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * GoodTypesSkeletonClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for GoodTypesSkeleton. 966s # */ 966s # 966s # struct _GoodTypesSkeletonPrivate 966s # { 966s # GValue *properties; 966s # GList *changed_properties; 966s # GSource *changed_properties_idle_source; 966s # GMainContext *context; 966s # GMutex lock; 966s # }; 966s # 966s # static void 966s # _good_types_skeleton_handle_method_call ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name, 966s # const gchar *method_name, 966s # GVariant *parameters, 966s # GDBusMethodInvocation *invocation, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # _ExtendedGDBusMethodInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # guint num_extra; 966s # gsize n; 966s # guint signal_id; 966s # GValue return_value = G_VALUE_INIT; 966s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 966s # g_assert (info != NULL); 966s # num_params = g_variant_n_children (parameters); 966s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 966s # n = 0; 966s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 966s # g_value_set_object (¶mv[n++], skeleton); 966s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 966s # g_value_set_object (¶mv[n++], invocation); 966s # if (info->pass_fdlist) 966s # { 966s # #ifdef G_OS_UNIX 966s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 966s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 966s # #else 966s # g_assert_not_reached (); 966s # #endif 966s # } 966s # g_variant_iter_init (&iter, parameters); 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 966s # g_value_init (&return_value, G_TYPE_BOOLEAN); 966s # g_signal_emitv (paramv, signal_id, 0, &return_value); 966s # if (!g_value_get_boolean (&return_value)) 966s # 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); 966s # g_value_unset (&return_value); 966s # for (n = 0; n < num_params + num_extra; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static GVariant * 966s # _good_types_skeleton_handle_get_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # GVariant *ret; 966s # ret = NULL; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # g_value_init (&value, pspec->value_type); 966s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_value_unset (&value); 966s # } 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _good_types_skeleton_handle_set_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GVariant *variant, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # gboolean ret; 966s # ret = FALSE; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # if (info->use_gvariant) 966s # g_value_set_variant (&value, variant); 966s # else 966s # g_dbus_gvariant_to_gvalue (variant, &value); 966s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # g_value_unset (&value); 966s # ret = TRUE; 966s # } 966s # return ret; 966s # } 966s # 966s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 966s # { 966s # _good_types_skeleton_handle_method_call, 966s # _good_types_skeleton_handle_get_property, 966s # _good_types_skeleton_handle_set_property, 966s # {NULL} 966s # }; 966s # 966s # static GDBusInterfaceInfo * 966s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return good_types_interface_info (); 966s # } 966s # 966s # static GDBusInterfaceVTable * 966s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # 966s # GVariantBuilder builder; 966s # guint n; 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #else 966s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #endif 966s # if (_good_types_interface_info.parent_struct.properties == NULL) 966s # goto out; 966s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 966s # { 966s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 966s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 966s # { 966s # GVariant *value; 966s # 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); 966s # if (value != NULL) 966s # { 966s # g_variant_take_ref (value); 966s # g_variant_builder_add (&builder, "{sv}", info->name, value); 966s # g_variant_unref (value); 966s # } 966s # } 966s # } 966s # out: 966s # return g_variant_builder_end (&builder); 966s # } 966s # 966s # static gboolean _good_types_emit_changed (gpointer user_data); 966s # 966s # static void 966s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 966s # gboolean emit_changed = FALSE; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # { 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # emit_changed = TRUE; 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # 966s # if (emit_changed) 966s # _good_types_emit_changed (skeleton); 966s # } 966s # 966s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_ADD_PRIVATE (GoodTypesSkeleton) 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 966s # 966s # #endif 966s # static void 966s # good_types_skeleton_finalize (GObject *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # guint n; 966s # for (n = 0; n < 1; n++) 966s # g_value_unset (&skeleton->priv->properties[n]); 966s # g_free (skeleton->priv->properties); 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # g_main_context_unref (skeleton->priv->context); 966s # g_mutex_clear (&skeleton->priv->lock); 966s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_get_property (GObject *object, 966s # guint prop_id, 966s # GValue *value, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static gboolean 966s # _good_types_emit_changed (gpointer user_data) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 966s # GList *l; 966s # GVariantBuilder builder; 966s # GVariantBuilder invalidated_builder; 966s # guint num_changes; 966s # 966s # g_mutex_lock (&skeleton->priv->lock); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #else 966s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 966s # #endif 966s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *cp = l->data; 966s # GVariant *variant; 966s # const GValue *cur_value; 966s # 966s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 966s # if (!_g_value_equal (cur_value, &cp->orig_value)) 966s # { 966s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 966s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 966s # g_variant_unref (variant); 966s # num_changes++; 966s # } 966s # } 966s # if (num_changes > 0) 966s # { 966s # GList *connections, *ll; 966s # GVariant *signal_variant; 966s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 966s # &builder, &invalidated_builder)); 966s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 966s # for (ll = connections; ll != NULL; ll = ll->next) 966s # { 966s # GDBusConnection *connection = ll->data; 966s # 966s # g_dbus_connection_emit_signal (connection, 966s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 966s # "org.freedesktop.DBus.Properties", 966s # "PropertiesChanged", 966s # signal_variant, 966s # NULL); 966s # } 966s # g_variant_unref (signal_variant); 966s # g_list_free_full (connections, g_object_unref); 966s # } 966s # else 966s # { 966s # g_variant_builder_clear (&builder); 966s # g_variant_builder_clear (&invalidated_builder); 966s # } 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # skeleton->priv->changed_properties = NULL; 966s # skeleton->priv->changed_properties_idle_source = NULL; 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return FALSE; 966s # } 966s # 966s # static void 966s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 966s # { 966s # ChangedProperty *cp; 966s # GList *l; 966s # cp = NULL; 966s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 966s # { 966s # ChangedProperty *i_cp = l->data; 966s # if (i_cp->info == info) 966s # { 966s # cp = i_cp; 966s # break; 966s # } 966s # } 966s # if (cp == NULL) 966s # { 966s # cp = g_new0 (ChangedProperty, 1); 966s # cp->prop_id = prop_id; 966s # cp->info = info; 966s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 966s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 966s # g_value_copy (orig_value, &cp->orig_value); 966s # } 966s # } 966s # 966s # static void 966s # good_types_skeleton_notify (GObject *object, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_mutex_lock (&skeleton->priv->lock); 966s # if (skeleton->priv->changed_properties != NULL && 966s # skeleton->priv->changed_properties_idle_source == NULL) 966s # { 966s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 966s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 966s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 966s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 966s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 966s # g_source_unref (skeleton->priv->changed_properties_idle_source); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # } 966s # 966s # static void 966s # good_types_skeleton_set_property (GObject *object, 966s # guint prop_id, 966s # const GValue *value, 966s # GParamSpec *pspec) 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # g_assert (prop_id != 0 && prop_id - 1 < 1); 966s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # g_object_freeze_notify (object); 966s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 966s # { 966s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 966s # info->emits_changed_signal) 966s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 966s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 966s # g_object_notify_by_pspec (object, pspec); 966s # } 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # g_object_thaw_notify (object); 966s # } 966s # 966s # static void 966s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 966s # #else 966s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 966s # #endif 966s # 966s # g_mutex_init (&skeleton->priv->lock); 966s # skeleton->priv->context = g_main_context_ref_thread_default (); 966s # skeleton->priv->properties = g_new0 (GValue, 1); 966s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 966s # } 966s # 966s # static GVariant * 966s # good_types_skeleton_get_good_property_type (GoodTypes *object) 966s # { 966s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 966s # GVariant *value; 966s # g_mutex_lock (&skeleton->priv->lock); 966s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 966s # g_mutex_unlock (&skeleton->priv->lock); 966s # return value; 966s # } 966s # 966s # static void 966s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusInterfaceSkeletonClass *skeleton_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = good_types_skeleton_finalize; 966s # gobject_class->get_property = good_types_skeleton_get_property; 966s # gobject_class->set_property = good_types_skeleton_set_property; 966s # gobject_class->notify = good_types_skeleton_notify; 966s # 966s # 966s # good_types_override_properties (gobject_class, 1); 966s # 966s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 966s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 966s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 966s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 966s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # good_types_skeleton_iface_init (GoodTypesIface *iface) 966s # { 966s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 966s # } 966s # 966s # /** 966s # * good_types_skeleton_new: 966s # * 966s # * Creates a skeleton object for the D-Bus interface GoodTypes. 966s # * 966s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 966s # */ 966s # GoodTypes * 966s # good_types_skeleton_new (void) 966s # { 966s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 966s # } 966s # Error: 966s ok 3 __main__.TestCodegen.test_empty_interface_body 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmpdsct3o0d 966s # /tmp/tmpdsct3o0d/tmpmi7tuw2c.xml: 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdsct3o0d/tmpmi7tuw2c.xml', '--output', '-', '--body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # #ifdef G_OS_UNIX 966s # # include 966s # #endif 966s # 966s # #ifdef G_ENABLE_DEBUG 966s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 966s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 966s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 966s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 966s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 966s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 966s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 966s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 966s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 966s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 966s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 966s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 966s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 966s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 966s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 966s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 966s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 966s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 966s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 966s # #else /* !G_ENABLE_DEBUG */ 966s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 966s # * Do not access GValues directly in your code. Instead, use the 966s # * g_value_get_*() functions 966s # */ 966s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 966s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 966s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 966s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 966s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 966s # #endif /* !G_ENABLE_DEBUG */ 966s # 966s # typedef struct 966s # { 966s # GDBusArgInfo parent_struct; 966s # gboolean use_gvariant; 966s # } _ExtendedGDBusArgInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusMethodInfo parent_struct; 966s # const gchar *signal_name; 966s # gboolean pass_fdlist; 966s # } _ExtendedGDBusMethodInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusSignalInfo parent_struct; 966s # const gchar *signal_name; 966s # } _ExtendedGDBusSignalInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusPropertyInfo parent_struct; 966s # const gchar *hyphen_name; 966s # guint use_gvariant : 1; 966s # guint emits_changed_signal : 1; 966s # } _ExtendedGDBusPropertyInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusInterfaceInfo parent_struct; 966s # const gchar *hyphen_name; 966s # } _ExtendedGDBusInterfaceInfo; 966s # 966s # typedef struct 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # guint prop_id; 966s # GValue orig_value; /* the value before the change */ 966s # } ChangedProperty; 966s # 966s # static void 966s # _changed_property_free (ChangedProperty *data) 966s # { 966s # g_value_unset (&data->orig_value); 966s # g_free (data); 966s # } 966s # 966s # static gboolean 966s # _g_strv_equal0 (gchar **a, gchar **b) 966s # { 966s # gboolean ret = FALSE; 966s # guint n; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # if (g_strv_length (a) != g_strv_length (b)) 966s # goto out; 966s # for (n = 0; a[n] != NULL; n++) 966s # if (g_strcmp0 (a[n], b[n]) != 0) 966s # goto out; 966s # ret = TRUE; 966s # out: 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _g_variant_equal0 (GVariant *a, GVariant *b) 966s # { 966s # gboolean ret = FALSE; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # ret = g_variant_equal (a, b); 966s # out: 966s # return ret; 966s # } 966s # 966s # G_GNUC_UNUSED static gboolean 966s # _g_value_equal (const GValue *a, const GValue *b) 966s # { 966s # gboolean ret = FALSE; 966s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 966s # switch (G_VALUE_TYPE (a)) 966s # { 966s # case G_TYPE_BOOLEAN: 966s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 966s # break; 966s # case G_TYPE_UCHAR: 966s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 966s # break; 966s # case G_TYPE_INT: 966s # ret = (g_value_get_int (a) == g_value_get_int (b)); 966s # break; 966s # case G_TYPE_UINT: 966s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 966s # break; 966s # case G_TYPE_INT64: 966s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 966s # break; 966s # case G_TYPE_UINT64: 966s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 966s # break; 966s # case G_TYPE_DOUBLE: 966s # { 966s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 966s # gdouble da = g_value_get_double (a); 966s # gdouble db = g_value_get_double (b); 966s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 966s # } 966s # break; 966s # case G_TYPE_STRING: 966s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 966s # break; 966s # case G_TYPE_VARIANT: 966s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 966s # break; 966s # default: 966s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 966s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 966s # else 966s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 966s # break; 966s # } 966s # return ret; 966s # } 966s # Error: 966s ok 4 __main__.TestCodegen.test_empty_interface_header 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmptskay5s0 966s # /tmp/tmptskay5s0/tmpxgauoutz.xml: 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptskay5s0/tmpxgauoutz.xml', '--output', '-', '--header'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifndef __STDOUT__ 966s # #define __STDOUT__ 966s # 966s # #include 966s # 966s # G_BEGIN_DECLS 966s # 966s # 966s # G_END_DECLS 966s # 966s # #endif /* __STDOUT__ */ 966s # Error: 966s ok 5 __main__.TestCodegen.test_empty_interface_info_body 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmp16rt40n8 966s # /tmp/tmp16rt40n8/tmpz1moezfr.xml: 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp16rt40n8/tmpz1moezfr.xml', '--output', '-', '--interface-info-body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # Error: 966s ok 6 __main__.TestCodegen.test_empty_interface_info_header 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmpkm44c3o7 966s # /tmp/tmpkm44c3o7/tmp1gxbrvrq.xml: 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkm44c3o7/tmp1gxbrvrq.xml', '--output', '-', '--interface-info-header'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifndef __STDOUT__ 966s # #define __STDOUT__ 966s # 966s # #include 966s # 966s # G_BEGIN_DECLS 966s # 966s # 966s # G_END_DECLS 966s # 966s # #endif /* __STDOUT__ */ 966s # Error: 966s ok 7 __main__.TestCodegen.test_generate_docbook 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmp3f0xw_db 966s # /tmp/tmp3f0xw_db/tmpp7_b6fdx.xml: 966s # 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3f0xw_db/tmpp7_b6fdx.xml', '--generate-docbook', 'test'] 966s # Return code: 0 966s # Output: 966s # 966s # Error: 966s ok 8 __main__.TestCodegen.test_generate_md 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmpsaqnfgns 966s # /tmp/tmpsaqnfgns/tmpaz7zukmd.xml: 966s # 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsaqnfgns/tmpaz7zukmd.xml', '--generate-md', 'test'] 966s # Return code: 0 966s # Output: 966s # 966s # Error: 966s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 966s # gdbus-codegen: /usr/bin/gdbus-codegen 966s # tmpdir: /tmp/tmp6y8ur4nf 966s # /tmp/tmp6y8ur4nf/tmphap_1dfl.xml: 966s # 966s # 966s # 966s # 966s # 966s # 966s # 966s # 966s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6y8ur4nf/tmphap_1dfl.xml', '--output', '-', '--body'] 966s # Return code: 0 966s # Output: 966s # /* 966s # * This file is generated by gdbus-codegen, do not modify it. 966s # * 966s # * The license of this code is the same as for the D-Bus interface description 966s # * it was derived from. Note that it links to GLib, so must comply with the 966s # * LGPL linking clauses. 966s # */ 966s # 966s # #ifdef HAVE_CONFIG_H 966s # # include "config.h" 966s # #endif 966s # 966s # #include 966s # #ifdef G_OS_UNIX 966s # # include 966s # #endif 966s # 966s # #ifdef G_ENABLE_DEBUG 966s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 966s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 966s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 966s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 966s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 966s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 966s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 966s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 966s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 966s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 966s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 966s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 966s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 966s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 966s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 966s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 966s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 966s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 966s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 966s # #else /* !G_ENABLE_DEBUG */ 966s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 966s # * Do not access GValues directly in your code. Instead, use the 966s # * g_value_get_*() functions 966s # */ 966s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 966s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 966s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 966s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 966s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 966s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 966s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 966s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 966s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 966s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 966s # #endif /* !G_ENABLE_DEBUG */ 966s # 966s # typedef struct 966s # { 966s # GDBusArgInfo parent_struct; 966s # gboolean use_gvariant; 966s # } _ExtendedGDBusArgInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusMethodInfo parent_struct; 966s # const gchar *signal_name; 966s # gboolean pass_fdlist; 966s # } _ExtendedGDBusMethodInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusSignalInfo parent_struct; 966s # const gchar *signal_name; 966s # } _ExtendedGDBusSignalInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusPropertyInfo parent_struct; 966s # const gchar *hyphen_name; 966s # guint use_gvariant : 1; 966s # guint emits_changed_signal : 1; 966s # } _ExtendedGDBusPropertyInfo; 966s # 966s # typedef struct 966s # { 966s # GDBusInterfaceInfo parent_struct; 966s # const gchar *hyphen_name; 966s # } _ExtendedGDBusInterfaceInfo; 966s # 966s # typedef struct 966s # { 966s # const _ExtendedGDBusPropertyInfo *info; 966s # guint prop_id; 966s # GValue orig_value; /* the value before the change */ 966s # } ChangedProperty; 966s # 966s # static void 966s # _changed_property_free (ChangedProperty *data) 966s # { 966s # g_value_unset (&data->orig_value); 966s # g_free (data); 966s # } 966s # 966s # static gboolean 966s # _g_strv_equal0 (gchar **a, gchar **b) 966s # { 966s # gboolean ret = FALSE; 966s # guint n; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # if (g_strv_length (a) != g_strv_length (b)) 966s # goto out; 966s # for (n = 0; a[n] != NULL; n++) 966s # if (g_strcmp0 (a[n], b[n]) != 0) 966s # goto out; 966s # ret = TRUE; 966s # out: 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _g_variant_equal0 (GVariant *a, GVariant *b) 966s # { 966s # gboolean ret = FALSE; 966s # if (a == NULL && b == NULL) 966s # { 966s # ret = TRUE; 966s # goto out; 966s # } 966s # if (a == NULL || b == NULL) 966s # goto out; 966s # ret = g_variant_equal (a, b); 966s # out: 966s # return ret; 966s # } 966s # 966s # G_GNUC_UNUSED static gboolean 966s # _g_value_equal (const GValue *a, const GValue *b) 966s # { 966s # gboolean ret = FALSE; 966s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 966s # switch (G_VALUE_TYPE (a)) 966s # { 966s # case G_TYPE_BOOLEAN: 966s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 966s # break; 966s # case G_TYPE_UCHAR: 966s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 966s # break; 966s # case G_TYPE_INT: 966s # ret = (g_value_get_int (a) == g_value_get_int (b)); 966s # break; 966s # case G_TYPE_UINT: 966s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 966s # break; 966s # case G_TYPE_INT64: 966s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 966s # break; 966s # case G_TYPE_UINT64: 966s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 966s # break; 966s # case G_TYPE_DOUBLE: 966s # { 966s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 966s # gdouble da = g_value_get_double (a); 966s # gdouble db = g_value_get_double (b); 966s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 966s # } 966s # break; 966s # case G_TYPE_STRING: 966s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 966s # break; 966s # case G_TYPE_VARIANT: 966s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 966s # break; 966s # default: 966s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 966s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 966s # else 966s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 966s # break; 966s # } 966s # return ret; 966s # } 966s # 966s # static void 966s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 966s # GClosure *closure, 966s # GValue *return_value, 966s # unsigned int n_param_values, 966s # const GValue *param_values, 966s # void *invocation_hint G_GNUC_UNUSED, 966s # void *marshal_data) 966s # { 966s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 966s # (void *data1, 966s # GDBusMethodInvocation *arg_method_invocation, 966s # void *data2); 966s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 966s # GCClosure *cc = (GCClosure*) closure; 966s # void *data1, *data2; 966s # gboolean v_return; 966s # 966s # g_return_if_fail (return_value != NULL); 966s # g_return_if_fail (n_param_values == 2); 966s # 966s # if (G_CCLOSURE_SWAP_DATA (closure)) 966s # { 966s # data1 = closure->data; 966s # data2 = g_value_peek_pointer (param_values + 0); 966s # } 966s # else 966s # { 966s # data1 = g_value_peek_pointer (param_values + 0); 966s # data2 = closure->data; 966s # } 966s # 966s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 966s # (marshal_data ? marshal_data : cc->callback); 966s # 966s # v_return = 966s # callback (data1, 966s # g_marshal_value_peek_object (param_values + 1), 966s # data2); 966s # 966s # g_value_set_boolean (return_value, v_return); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ 966s # * Code for interface org.project.CallableIface 966s # * ------------------------------------------------------------------------ 966s # */ 966s # 966s # /** 966s # * SECTION:OrgProjectCallableIface 966s # * @title: OrgProjectCallableIface 966s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 966s # * 966s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 966s # */ 966s # 966s # /* ---- Introspection data for org.project.CallableIface ---- */ 966s # 966s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 966s # { 966s # { 966s # -1, 966s # (gchar *) "SimpleMethod", 966s # NULL, 966s # NULL, 966s # NULL 966s # }, 966s # "handle-simple-method", 966s # FALSE 966s # }; 966s # 966s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 966s # { 966s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 966s # NULL 966s # }; 966s # 966s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 966s # { 966s # { 966s # -1, 966s # (gchar *) "org.project.CallableIface", 966s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 966s # NULL, 966s # NULL, 966s # NULL 966s # }, 966s # "org-project-callable-iface", 966s # }; 966s # 966s # 966s # /** 966s # * org_project_callable_iface_interface_info: 966s # * 966s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 966s # * 966s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 966s # */ 966s # GDBusInterfaceInfo * 966s # org_project_callable_iface_interface_info (void) 966s # { 966s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_override_properties: 966s # * @klass: The class structure for a #GObject derived class. 966s # * @property_id_begin: The property id to assign to the first overridden property. 966s # * 966s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 966s # * The properties are overridden in the order they are defined. 966s # * 966s # * Returns: The last property id. 966s # */ 966s # guint 966s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 966s # { 966s # return property_id_begin - 1; 966s # } 966s # 966s # 966s # inline static void 966s # org_project_callable_iface_method_marshal_simple_method ( 966s # GClosure *closure, 966s # GValue *return_value, 966s # unsigned int n_param_values, 966s # const GValue *param_values, 966s # void *invocation_hint, 966s # void *marshal_data) 966s # { 966s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 966s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 966s # } 966s # 966s # 966s # /** 966s # * OrgProjectCallableIface: 966s # * 966s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 966s # */ 966s # 966s # /** 966s # * OrgProjectCallableIfaceIface: 966s # * @parent_iface: The parent interface. 966s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 966s # * 966s # * Virtual table for the D-Bus interface org.project.CallableIface. 966s # */ 966s # 966s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 966s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 966s # 966s # static void 966s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 966s # { 966s # /* GObject signals for incoming D-Bus method calls: */ 966s # /** 966s # * OrgProjectCallableIface::handle-simple-method: 966s # * @object: A #OrgProjectCallableIface. 966s # * @invocation: A #GDBusMethodInvocation. 966s # * 966s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 966s # * 966s # * 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. 966s # * 966s # * 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. 966s # */ 966s # g_signal_new ("handle-simple-method", 966s # G_TYPE_FROM_INTERFACE (iface), 966s # G_SIGNAL_RUN_LAST, 966s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 966s # g_signal_accumulator_true_handled, 966s # NULL, 966s # org_project_callable_iface_method_marshal_simple_method, 966s # G_TYPE_BOOLEAN, 966s # 1, 966s # G_TYPE_DBUS_METHOD_INVOCATION); 966s # 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_call_simple_method: 966s # * @proxy: A #OrgProjectCallableIfaceProxy. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 966s # * 966s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 966s # */ 966s # void 966s # org_project_callable_iface_call_simple_method ( 966s # OrgProjectCallableIface *proxy, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 966s # "SimpleMethod", 966s # g_variant_new ("()"), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # cancellable, 966s # callback, 966s # user_data); 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_call_simple_method_finish: 966s # * @proxy: A #OrgProjectCallableIfaceProxy. 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 966s # * @error: Return location for error or %NULL. 966s # * 966s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 966s # * 966s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 966s # */ 966s # gboolean 966s # org_project_callable_iface_call_simple_method_finish ( 966s # OrgProjectCallableIface *proxy, 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GVariant *_ret; 966s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 966s # if (_ret == NULL) 966s # goto _out; 966s # g_variant_get (_ret, 966s # "()"); 966s # g_variant_unref (_ret); 966s # _out: 966s # return _ret != NULL; 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_call_simple_method_sync: 966s # * @proxy: A #OrgProjectCallableIfaceProxy. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL. 966s # * 966s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 966s # * 966s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 966s # */ 966s # gboolean 966s # org_project_callable_iface_call_simple_method_sync ( 966s # OrgProjectCallableIface *proxy, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GVariant *_ret; 966s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 966s # "SimpleMethod", 966s # g_variant_new ("()"), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # cancellable, 966s # error); 966s # if (_ret == NULL) 966s # goto _out; 966s # g_variant_get (_ret, 966s # "()"); 966s # g_variant_unref (_ret); 966s # _out: 966s # return _ret != NULL; 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_complete_simple_method: 966s # * @object: A #OrgProjectCallableIface. 966s # * @invocation: (transfer full): A #GDBusMethodInvocation. 966s # * 966s # * 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. 966s # * 966s # * This method will free @invocation, you cannot use it afterwards. 966s # */ 966s # void 966s # org_project_callable_iface_complete_simple_method ( 966s # OrgProjectCallableIface *object G_GNUC_UNUSED, 966s # GDBusMethodInvocation *invocation) 966s # { 966s # g_dbus_method_invocation_return_value (invocation, 966s # g_variant_new ("()")); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * OrgProjectCallableIfaceProxy: 966s # * 966s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * OrgProjectCallableIfaceProxyClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for #OrgProjectCallableIfaceProxy. 966s # */ 966s # 966s # struct _OrgProjectCallableIfaceProxyPrivate 966s # { 966s # GData *qdata; 966s # }; 966s # 966s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 966s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 966s # 966s # #endif 966s # static void 966s # org_project_callable_iface_proxy_finalize (GObject *object) 966s # { 966s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 966s # g_datalist_clear (&proxy->priv->qdata); 966s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 966s # guint prop_id G_GNUC_UNUSED, 966s # GValue *value G_GNUC_UNUSED, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 966s # guint prop_id G_GNUC_UNUSED, 966s # const GValue *value G_GNUC_UNUSED, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 966s # const gchar *sender_name G_GNUC_UNUSED, 966s # const gchar *signal_name, 966s # GVariant *parameters) 966s # { 966s # _ExtendedGDBusSignalInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # gsize n; 966s # guint signal_id; 966s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 966s # if (info == NULL) 966s # return; 966s # num_params = g_variant_n_children (parameters); 966s # paramv = g_new0 (GValue, num_params + 1); 966s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 966s # g_value_set_object (¶mv[0], proxy); 966s # g_variant_iter_init (&iter, parameters); 966s # n = 1; 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 966s # g_signal_emitv (paramv, signal_id, 0, NULL); 966s # for (n = 0; n < num_params + 1; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 966s # GVariant *changed_properties, 966s # const gchar *const *invalidated_properties) 966s # { 966s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 966s # guint n; 966s # const gchar *key; 966s # GVariantIter *iter; 966s # _ExtendedGDBusPropertyInfo *info; 966s # g_variant_get (changed_properties, "a{sv}", &iter); 966s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 966s # g_datalist_remove_data (&proxy->priv->qdata, key); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # g_variant_iter_free (iter); 966s # for (n = 0; invalidated_properties[n] != NULL; n++) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 966s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 966s # #else 966s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 966s # #endif 966s # 966s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusProxyClass *proxy_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 966s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 966s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 966s # 966s # proxy_class = G_DBUS_PROXY_CLASS (klass); 966s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 966s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 966s # * 966s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # org_project_callable_iface_proxy_new ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 966s # * 966s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectCallableIface * 966s # org_project_callable_iface_proxy_new_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return ORG_PROJECT_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new_sync: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectCallableIface * 966s # org_project_callable_iface_proxy_new_sync ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return ORG_PROJECT_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new_for_bus: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 966s # * 966s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # org_project_callable_iface_proxy_new_for_bus ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new_for_bus_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 966s # * 966s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectCallableIface * 966s # org_project_callable_iface_proxy_new_for_bus_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return ORG_PROJECT_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_proxy_new_for_bus_sync: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectCallableIface * 966s # org_project_callable_iface_proxy_new_for_bus_sync ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return ORG_PROJECT_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * OrgProjectCallableIfaceSkeleton: 966s # * 966s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * OrgProjectCallableIfaceSkeletonClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for #OrgProjectCallableIfaceSkeleton. 966s # */ 966s # 966s # struct _OrgProjectCallableIfaceSkeletonPrivate 966s # { 966s # GValue *properties; 966s # GList *changed_properties; 966s # GSource *changed_properties_idle_source; 966s # GMainContext *context; 966s # GMutex lock; 966s # }; 966s # 966s # static void 966s # _org_project_callable_iface_skeleton_handle_method_call ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name, 966s # const gchar *method_name, 966s # GVariant *parameters, 966s # GDBusMethodInvocation *invocation, 966s # gpointer user_data) 966s # { 966s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 966s # _ExtendedGDBusMethodInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # guint num_extra; 966s # gsize n; 966s # guint signal_id; 966s # GValue return_value = G_VALUE_INIT; 966s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 966s # g_assert (info != NULL); 966s # num_params = g_variant_n_children (parameters); 966s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 966s # n = 0; 966s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 966s # g_value_set_object (¶mv[n++], skeleton); 966s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 966s # g_value_set_object (¶mv[n++], invocation); 966s # if (info->pass_fdlist) 966s # { 966s # #ifdef G_OS_UNIX 966s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 966s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 966s # #else 966s # g_assert_not_reached (); 966s # #endif 966s # } 966s # g_variant_iter_init (&iter, parameters); 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 966s # g_value_init (&return_value, G_TYPE_BOOLEAN); 966s # g_signal_emitv (paramv, signal_id, 0, &return_value); 966s # if (!g_value_get_boolean (&return_value)) 966s # 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); 966s # g_value_unset (&return_value); 966s # for (n = 0; n < num_params + num_extra; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static GVariant * 966s # _org_project_callable_iface_skeleton_handle_get_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # GVariant *ret; 966s # ret = NULL; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # g_value_init (&value, pspec->value_type); 966s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_value_unset (&value); 966s # } 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _org_project_callable_iface_skeleton_handle_set_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GVariant *variant, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # gboolean ret; 966s # ret = FALSE; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # if (info->use_gvariant) 966s # g_value_set_variant (&value, variant); 966s # else 966s # g_dbus_gvariant_to_gvalue (variant, &value); 966s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # g_value_unset (&value); 966s # ret = TRUE; 966s # } 966s # return ret; 966s # } 966s # 966s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 966s # { 966s # _org_project_callable_iface_skeleton_handle_method_call, 966s # _org_project_callable_iface_skeleton_handle_get_property, 966s # _org_project_callable_iface_skeleton_handle_set_property, 966s # {NULL} 966s # }; 966s # 966s # static GDBusInterfaceInfo * 966s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return org_project_callable_iface_interface_info (); 966s # } 966s # 966s # static GDBusInterfaceVTable * 966s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 966s # } 966s # 966s # static GVariant * 966s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 966s # 966s # GVariantBuilder builder; 966s # guint n; 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #else 966s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #endif 966s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 966s # goto out; 966s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 966s # { 966s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 966s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 966s # { 966s # GVariant *value; 966s # 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); 966s # if (value != NULL) 966s # { 966s # g_variant_take_ref (value); 966s # g_variant_builder_add (&builder, "{sv}", info->name, value); 966s # g_variant_unref (value); 966s # } 966s # } 966s # } 966s # out: 966s # return g_variant_builder_end (&builder); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 966s # 966s # #endif 966s # static void 966s # org_project_callable_iface_skeleton_finalize (GObject *object) 966s # { 966s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # g_main_context_unref (skeleton->priv->context); 966s # g_mutex_clear (&skeleton->priv->lock); 966s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 966s # #else 966s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 966s # #endif 966s # 966s # g_mutex_init (&skeleton->priv->lock); 966s # skeleton->priv->context = g_main_context_ref_thread_default (); 966s # } 966s # 966s # static void 966s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusInterfaceSkeletonClass *skeleton_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 966s # 966s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 966s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 966s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 966s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 966s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # /** 966s # * org_project_callable_iface_skeleton_new: 966s # * 966s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 966s # * 966s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 966s # */ 966s # OrgProjectCallableIface * 966s # org_project_callable_iface_skeleton_new (void) 966s # { 966s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ 966s # * Code for interface org.project.OtherCallableIface 966s # * ------------------------------------------------------------------------ 966s # */ 966s # 966s # /** 966s # * SECTION:OrgProjectOtherCallableIface 966s # * @title: OrgProjectOtherCallableIface 966s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 966s # * 966s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 966s # */ 966s # 966s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 966s # 966s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 966s # { 966s # { 966s # -1, 966s # (gchar *) "SimpleMethod", 966s # NULL, 966s # NULL, 966s # NULL 966s # }, 966s # "handle-simple-method", 966s # FALSE 966s # }; 966s # 966s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 966s # { 966s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 966s # NULL 966s # }; 966s # 966s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 966s # { 966s # { 966s # -1, 966s # (gchar *) "org.project.OtherCallableIface", 966s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 966s # NULL, 966s # NULL, 966s # NULL 966s # }, 966s # "org-project-other-callable-iface", 966s # }; 966s # 966s # 966s # /** 966s # * org_project_other_callable_iface_interface_info: 966s # * 966s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 966s # * 966s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 966s # */ 966s # GDBusInterfaceInfo * 966s # org_project_other_callable_iface_interface_info (void) 966s # { 966s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_override_properties: 966s # * @klass: The class structure for a #GObject derived class. 966s # * @property_id_begin: The property id to assign to the first overridden property. 966s # * 966s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 966s # * The properties are overridden in the order they are defined. 966s # * 966s # * Returns: The last property id. 966s # */ 966s # guint 966s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 966s # { 966s # return property_id_begin - 1; 966s # } 966s # 966s # 966s # inline static void 966s # org_project_other_callable_iface_method_marshal_simple_method ( 966s # GClosure *closure, 966s # GValue *return_value, 966s # unsigned int n_param_values, 966s # const GValue *param_values, 966s # void *invocation_hint, 966s # void *marshal_data) 966s # { 966s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 966s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 966s # } 966s # 966s # 966s # /** 966s # * OrgProjectOtherCallableIface: 966s # * 966s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 966s # */ 966s # 966s # /** 966s # * OrgProjectOtherCallableIfaceIface: 966s # * @parent_iface: The parent interface. 966s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 966s # * 966s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 966s # */ 966s # 966s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 966s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 966s # 966s # static void 966s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 966s # { 966s # /* GObject signals for incoming D-Bus method calls: */ 966s # /** 966s # * OrgProjectOtherCallableIface::handle-simple-method: 966s # * @object: A #OrgProjectOtherCallableIface. 966s # * @invocation: A #GDBusMethodInvocation. 966s # * 966s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 966s # * 966s # * 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. 966s # * 966s # * 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. 966s # */ 966s # g_signal_new ("handle-simple-method", 966s # G_TYPE_FROM_INTERFACE (iface), 966s # G_SIGNAL_RUN_LAST, 966s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 966s # g_signal_accumulator_true_handled, 966s # NULL, 966s # org_project_other_callable_iface_method_marshal_simple_method, 966s # G_TYPE_BOOLEAN, 966s # 1, 966s # G_TYPE_DBUS_METHOD_INVOCATION); 966s # 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_call_simple_method: 966s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 966s # * 966s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 966s # */ 966s # void 966s # org_project_other_callable_iface_call_simple_method ( 966s # OrgProjectOtherCallableIface *proxy, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 966s # "SimpleMethod", 966s # g_variant_new ("()"), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # cancellable, 966s # callback, 966s # user_data); 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_call_simple_method_finish: 966s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 966s # * @error: Return location for error or %NULL. 966s # * 966s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 966s # * 966s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 966s # */ 966s # gboolean 966s # org_project_other_callable_iface_call_simple_method_finish ( 966s # OrgProjectOtherCallableIface *proxy, 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GVariant *_ret; 966s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 966s # if (_ret == NULL) 966s # goto _out; 966s # g_variant_get (_ret, 966s # "()"); 966s # g_variant_unref (_ret); 966s # _out: 966s # return _ret != NULL; 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_call_simple_method_sync: 966s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL. 966s # * 966s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 966s # * 966s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 966s # */ 966s # gboolean 966s # org_project_other_callable_iface_call_simple_method_sync ( 966s # OrgProjectOtherCallableIface *proxy, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GVariant *_ret; 966s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 966s # "SimpleMethod", 966s # g_variant_new ("()"), 966s # G_DBUS_CALL_FLAGS_NONE, 966s # -1, 966s # cancellable, 966s # error); 966s # if (_ret == NULL) 966s # goto _out; 966s # g_variant_get (_ret, 966s # "()"); 966s # g_variant_unref (_ret); 966s # _out: 966s # return _ret != NULL; 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_complete_simple_method: 966s # * @object: A #OrgProjectOtherCallableIface. 966s # * @invocation: (transfer full): A #GDBusMethodInvocation. 966s # * 966s # * 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. 966s # * 966s # * This method will free @invocation, you cannot use it afterwards. 966s # */ 966s # void 966s # org_project_other_callable_iface_complete_simple_method ( 966s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 966s # GDBusMethodInvocation *invocation) 966s # { 966s # g_dbus_method_invocation_return_value (invocation, 966s # g_variant_new ("()")); 966s # } 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * OrgProjectOtherCallableIfaceProxy: 966s # * 966s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * OrgProjectOtherCallableIfaceProxyClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 966s # */ 966s # 966s # struct _OrgProjectOtherCallableIfaceProxyPrivate 966s # { 966s # GData *qdata; 966s # }; 966s # 966s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 966s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 966s # 966s # #endif 966s # static void 966s # org_project_other_callable_iface_proxy_finalize (GObject *object) 966s # { 966s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 966s # g_datalist_clear (&proxy->priv->qdata); 966s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 966s # guint prop_id G_GNUC_UNUSED, 966s # GValue *value G_GNUC_UNUSED, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 966s # guint prop_id G_GNUC_UNUSED, 966s # const GValue *value G_GNUC_UNUSED, 966s # GParamSpec *pspec G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 966s # const gchar *sender_name G_GNUC_UNUSED, 966s # const gchar *signal_name, 966s # GVariant *parameters) 966s # { 966s # _ExtendedGDBusSignalInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # gsize n; 966s # guint signal_id; 966s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 966s # if (info == NULL) 966s # return; 966s # num_params = g_variant_n_children (parameters); 966s # paramv = g_new0 (GValue, num_params + 1); 966s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 966s # g_value_set_object (¶mv[0], proxy); 966s # g_variant_iter_init (&iter, parameters); 966s # n = 1; 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 966s # g_signal_emitv (paramv, signal_id, 0, NULL); 966s # for (n = 0; n < num_params + 1; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 966s # GVariant *changed_properties, 966s # const gchar *const *invalidated_properties) 966s # { 966s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 966s # guint n; 966s # const gchar *key; 966s # GVariantIter *iter; 966s # _ExtendedGDBusPropertyInfo *info; 966s # g_variant_get (changed_properties, "a{sv}", &iter); 966s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 966s # g_datalist_remove_data (&proxy->priv->qdata, key); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # g_variant_iter_free (iter); 966s # for (n = 0; invalidated_properties[n] != NULL; n++) 966s # { 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 966s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 966s # if (info != NULL) 966s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 966s # } 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 966s # #else 966s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 966s # #endif 966s # 966s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusProxyClass *proxy_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 966s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 966s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 966s # 966s # proxy_class = G_DBUS_PROXY_CLASS (klass); 966s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 966s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 966s # * 966s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # org_project_other_callable_iface_proxy_new ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 966s # * 966s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectOtherCallableIface * 966s # org_project_other_callable_iface_proxy_new_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new_sync: 966s # * @connection: A #GDBusConnection. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectOtherCallableIface * 966s # org_project_other_callable_iface_proxy_new_sync ( 966s # GDBusConnection *connection, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new_for_bus: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 966s # * @user_data: User data to pass to @callback. 966s # * 966s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 966s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 966s # * 966s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 966s # */ 966s # void 966s # org_project_other_callable_iface_proxy_new_for_bus ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GAsyncReadyCallback callback, 966s # gpointer user_data) 966s # { 966s # 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); 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 966s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 966s # * @error: Return location for error or %NULL 966s # * 966s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 966s # * 966s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectOtherCallableIface * 966s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 966s # GAsyncResult *res, 966s # GError **error) 966s # { 966s # GObject *ret; 966s # GObject *source_object; 966s # source_object = g_async_result_get_source_object (res); 966s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 966s # g_object_unref (source_object); 966s # if (ret != NULL) 966s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 966s # * @bus_type: A #GBusType. 966s # * @flags: Flags from the #GDBusProxyFlags enumeration. 966s # * @name: A bus name (well-known or unique). 966s # * @object_path: An object path. 966s # * @cancellable: (nullable): A #GCancellable or %NULL. 966s # * @error: Return location for error or %NULL 966s # * 966s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 966s # * 966s # * The calling thread is blocked until a reply is received. 966s # * 966s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 966s # * 966s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 966s # */ 966s # OrgProjectOtherCallableIface * 966s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 966s # GBusType bus_type, 966s # GDBusProxyFlags flags, 966s # const gchar *name, 966s # const gchar *object_path, 966s # GCancellable *cancellable, 966s # GError **error) 966s # { 966s # GInitable *ret; 966s # 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); 966s # if (ret != NULL) 966s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 966s # else 966s # return NULL; 966s # } 966s # 966s # 966s # /* ------------------------------------------------------------------------ */ 966s # 966s # /** 966s # * OrgProjectOtherCallableIfaceSkeleton: 966s # * 966s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 966s # */ 966s # 966s # /** 966s # * OrgProjectOtherCallableIfaceSkeletonClass: 966s # * @parent_class: The parent class. 966s # * 966s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 966s # */ 966s # 966s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 966s # { 966s # GValue *properties; 966s # GList *changed_properties; 966s # GSource *changed_properties_idle_source; 966s # GMainContext *context; 966s # GMutex lock; 966s # }; 966s # 966s # static void 966s # _org_project_other_callable_iface_skeleton_handle_method_call ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name, 966s # const gchar *method_name, 966s # GVariant *parameters, 966s # GDBusMethodInvocation *invocation, 966s # gpointer user_data) 966s # { 966s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 966s # _ExtendedGDBusMethodInfo *info; 966s # GVariantIter iter; 966s # GVariant *child; 966s # GValue *paramv; 966s # gsize num_params; 966s # guint num_extra; 966s # gsize n; 966s # guint signal_id; 966s # GValue return_value = G_VALUE_INIT; 966s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 966s # g_assert (info != NULL); 966s # num_params = g_variant_n_children (parameters); 966s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 966s # n = 0; 966s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 966s # g_value_set_object (¶mv[n++], skeleton); 966s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 966s # g_value_set_object (¶mv[n++], invocation); 966s # if (info->pass_fdlist) 966s # { 966s # #ifdef G_OS_UNIX 966s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 966s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 966s # #else 966s # g_assert_not_reached (); 966s # #endif 966s # } 966s # g_variant_iter_init (&iter, parameters); 966s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 966s # { 966s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 966s # if (arg_info->use_gvariant) 966s # { 966s # g_value_init (¶mv[n], G_TYPE_VARIANT); 966s # g_value_set_variant (¶mv[n], child); 966s # n++; 966s # } 966s # else 966s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 966s # g_variant_unref (child); 966s # } 966s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 966s # g_value_init (&return_value, G_TYPE_BOOLEAN); 966s # g_signal_emitv (paramv, signal_id, 0, &return_value); 966s # if (!g_value_get_boolean (&return_value)) 966s # 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); 966s # g_value_unset (&return_value); 966s # for (n = 0; n < num_params + num_extra; n++) 966s # g_value_unset (¶mv[n]); 966s # g_free (paramv); 966s # } 966s # 966s # static GVariant * 966s # _org_project_other_callable_iface_skeleton_handle_get_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # GVariant *ret; 966s # ret = NULL; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # g_value_init (&value, pspec->value_type); 966s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 966s # g_value_unset (&value); 966s # } 966s # return ret; 966s # } 966s # 966s # static gboolean 966s # _org_project_other_callable_iface_skeleton_handle_set_property ( 966s # GDBusConnection *connection G_GNUC_UNUSED, 966s # const gchar *sender G_GNUC_UNUSED, 966s # const gchar *object_path G_GNUC_UNUSED, 966s # const gchar *interface_name G_GNUC_UNUSED, 966s # const gchar *property_name, 966s # GVariant *variant, 966s # GError **error, 966s # gpointer user_data) 966s # { 966s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 966s # GValue value = G_VALUE_INIT; 966s # GParamSpec *pspec; 966s # _ExtendedGDBusPropertyInfo *info; 966s # gboolean ret; 966s # ret = FALSE; 966s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 966s # g_assert (info != NULL); 966s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 966s # if (pspec == NULL) 966s # { 966s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 966s # } 966s # else 966s # { 966s # if (info->use_gvariant) 966s # g_value_set_variant (&value, variant); 966s # else 966s # g_dbus_gvariant_to_gvalue (variant, &value); 966s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 966s # g_value_unset (&value); 966s # ret = TRUE; 966s # } 966s # return ret; 966s # } 966s # 966s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 966s # { 966s # _org_project_other_callable_iface_skeleton_handle_method_call, 966s # _org_project_other_callable_iface_skeleton_handle_get_property, 966s # _org_project_other_callable_iface_skeleton_handle_set_property, 966s # {NULL} 966s # }; 966s # 966s # static GDBusInterfaceInfo * 966s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return org_project_other_callable_iface_interface_info (); 966s # } 966s # 966s # static GDBusInterfaceVTable * 966s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 966s # { 966s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 966s # } 966s # 966s # static GVariant * 966s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 966s # { 966s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 966s # 966s # GVariantBuilder builder; 966s # guint n; 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 966s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #else 966s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 966s # #endif 966s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 966s # goto out; 966s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 966s # { 966s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 966s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 966s # { 966s # GVariant *value; 966s # 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); 966s # if (value != NULL) 966s # { 966s # g_variant_take_ref (value); 966s # g_variant_builder_add (&builder, "{sv}", info->name, value); 966s # g_variant_unref (value); 966s # } 966s # } 966s # } 966s # out: 966s # return g_variant_builder_end (&builder); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 966s # 966s # #else 966s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 966s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 966s # 966s # #endif 966s # static void 966s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 966s # { 966s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 966s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 966s # if (skeleton->priv->changed_properties_idle_source != NULL) 966s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 966s # g_main_context_unref (skeleton->priv->context); 966s # g_mutex_clear (&skeleton->priv->lock); 966s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 966s # { 966s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 966s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 966s # #else 966s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 966s # #endif 966s # 966s # g_mutex_init (&skeleton->priv->lock); 966s # skeleton->priv->context = g_main_context_ref_thread_default (); 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 966s # { 966s # GObjectClass *gobject_class; 966s # GDBusInterfaceSkeletonClass *skeleton_class; 966s # 966s # gobject_class = G_OBJECT_CLASS (klass); 966s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 966s # 966s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 966s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 966s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 966s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 966s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 966s # 966s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 966s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 966s # #endif 966s # } 966s # 966s # static void 966s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 966s # { 966s # } 966s # 966s # /** 966s # * org_project_other_callable_iface_skeleton_new: 966s # * 966s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 966s # * 966s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 966s # */ 966s # OrgProjectOtherCallableIface * 966s # org_project_other_callable_iface_skeleton_new (void) 966s # { 966s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 966s # } 966s # Error: 967s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 967s # gdbus-codegen: /usr/bin/gdbus-codegen 967s # tmpdir: /tmp/tmpy15vy_1e 967s # /tmp/tmpy15vy_1e/tmp1wnb65o6.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp1wnb65o6.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # gboolean arg_arg_b, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_boolean (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_b", 967s # (gchar *) "b", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodB", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-b", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_b ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_b: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-b", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_b, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_b: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_b: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_b ( 967s # OrgProjectUsefulInterface *proxy, 967s # gboolean arg_arg_b, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodB", 967s # g_variant_new ("(b)", 967s # arg_arg_b), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_b_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_b_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_b_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_b: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_b_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # gboolean arg_arg_b, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodB", 967s # g_variant_new ("(b)", 967s # arg_arg_b), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_b: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_b ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpnkrnvh2h.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpnkrnvh2h.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # guchar arg_arg_y, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_uchar (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_y", 967s # (gchar *) "y", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodY", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-y", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_y ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_y: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-y", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_y, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_y: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_y: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_y ( 967s # OrgProjectUsefulInterface *proxy, 967s # guchar arg_arg_y, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodY", 967s # g_variant_new ("(y)", 967s # arg_arg_y), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_y_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_y_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_y_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_y: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_y_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # guchar arg_arg_y, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodY", 967s # g_variant_new ("(y)", 967s # arg_arg_y), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_y: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_y ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpnr_rbud4.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpnr_rbud4.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # gint16 arg_arg_n, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_int (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_n", 967s # (gchar *) "n", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodN", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-n", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_n ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_n: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-n", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_n, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_n: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_n: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_n ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint16 arg_arg_n, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodN", 967s # g_variant_new ("(n)", 967s # arg_arg_n), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_n_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_n_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_n_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_n: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_n_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint16 arg_arg_n, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodN", 967s # g_variant_new ("(n)", 967s # arg_arg_n), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_n: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_n ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp9bcu780c.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp9bcu780c.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # guint16 arg_arg_q, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_uint (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_q", 967s # (gchar *) "q", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodQ", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-q", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_q ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_q: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-q", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_q, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_q: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_q: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_q ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint16 arg_arg_q, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodQ", 967s # g_variant_new ("(q)", 967s # arg_arg_q), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_q_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_q_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_q_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_q: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_q_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint16 arg_arg_q, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodQ", 967s # g_variant_new ("(q)", 967s # arg_arg_q), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_q: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_q ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpyu7y4gw5.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpyu7y4gw5.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # gint arg_arg_i, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_int (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_i", 967s # (gchar *) "i", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodI", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-i", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_i ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_i: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-i", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_i, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_i: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_i: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_i ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint arg_arg_i, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodI", 967s # g_variant_new ("(i)", 967s # arg_arg_i), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_i_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_i_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_i_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_i: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_i_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint arg_arg_i, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodI", 967s # g_variant_new ("(i)", 967s # arg_arg_i), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_i: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_i ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpcyujly95.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpcyujly95.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # guint arg_arg_u, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_uint (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_u", 967s # (gchar *) "u", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodU", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-u", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_u ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_u: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-u", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_u, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_u: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_u: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_u ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint arg_arg_u, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodU", 967s # g_variant_new ("(u)", 967s # arg_arg_u), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_u_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_u_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_u_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_u: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_u_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint arg_arg_u, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodU", 967s # g_variant_new ("(u)", 967s # arg_arg_u), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_u: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_u ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp9bhnwrbl.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp9bhnwrbl.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # gint64 arg_arg_x, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_int64 (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_x", 967s # (gchar *) "x", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodX", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-x", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_x ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_x: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-x", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_x, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_x: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_x: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_x ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint64 arg_arg_x, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodX", 967s # g_variant_new ("(x)", 967s # arg_arg_x), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_x_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_x_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_x_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_x: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_x_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # gint64 arg_arg_x, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodX", 967s # g_variant_new ("(x)", 967s # arg_arg_x), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_x: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_x ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp1tv5x9ps.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp1tv5x9ps.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # guint64 arg_arg_t, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_uint64 (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_t", 967s # (gchar *) "t", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodT", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-t", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_t ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_t: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-t", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_t, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_t: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_t: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_t ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint64 arg_arg_t, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodT", 967s # g_variant_new ("(t)", 967s # arg_arg_t), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_t_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_t_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_t_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_t: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_t_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # guint64 arg_arg_t, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodT", 967s # g_variant_new ("(t)", 967s # arg_arg_t), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_t: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_t ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmptvga25po.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmptvga25po.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # gdouble arg_arg_d, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_double (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_d", 967s # (gchar *) "d", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodD", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-d", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_d ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_d: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-d", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_d, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_d: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_d: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_d ( 967s # OrgProjectUsefulInterface *proxy, 967s # gdouble arg_arg_d, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodD", 967s # g_variant_new ("(d)", 967s # arg_arg_d), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_d_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_d_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_d_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_d: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_d_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # gdouble arg_arg_d, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodD", 967s # g_variant_new ("(d)", 967s # arg_arg_d), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_d: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_d ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpeez2x7cb.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpeez2x7cb.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *arg_arg_s, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_string (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_s", 967s # (gchar *) "s", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodS", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-s", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_s ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_s: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-s", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_s, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_s: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_s: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_s ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_s, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodS", 967s # g_variant_new ("(s)", 967s # arg_arg_s), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_s_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_s_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_s_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_s: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_s_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_s, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodS", 967s # g_variant_new ("(s)", 967s # arg_arg_s), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_s: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_s ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpyqx1net8.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpyqx1net8.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *arg_arg_o, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_string (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_o", 967s # (gchar *) "o", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodO", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-o", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_o ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_o: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-o", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_o, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_o: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_o: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_o ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_o, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodO", 967s # g_variant_new ("(o)", 967s # arg_arg_o), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_o_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_o_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_o_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_o: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_o_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_o, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodO", 967s # g_variant_new ("(o)", 967s # arg_arg_o), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_o: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_o ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp6w8jjyz9.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp6w8jjyz9.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *arg_arg_g, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_string (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_g", 967s # (gchar *) "g", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodG", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-g", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_g ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_g: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-g", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_g, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_g: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_g: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_g ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_g, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodG", 967s # g_variant_new ("(g)", 967s # arg_arg_g), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_g_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_g_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_g_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_g: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_g_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_g, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodG", 967s # g_variant_new ("(g)", 967s # arg_arg_g), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_g: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_g ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp0hishtbg.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp0hishtbg.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # GVariant *arg_arg_h, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_variant (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_h", 967s # (gchar *) "h", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodH", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-h", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_h ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_h: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-h", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_h, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_h: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_h: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_h ( 967s # OrgProjectUsefulInterface *proxy, 967s # GVariant *arg_arg_h, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodH", 967s # g_variant_new ("(@h)", 967s # arg_arg_h), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_h_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_h_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_h_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_h: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_h_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # GVariant *arg_arg_h, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodH", 967s # g_variant_new ("(@h)", 967s # arg_arg_h), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_h: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_h ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp3ttf9ha3.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp3ttf9ha3.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *arg_arg_ay, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_string (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_ay", 967s # (gchar *) "ay", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodAy", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-ay", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_ay: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-ay", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_ay, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ay: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_ay: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_ay ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_ay, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAy", 967s # g_variant_new ("(^ay)", 967s # arg_arg_ay), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ay_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_ay_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ay_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_ay: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_ay_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *arg_arg_ay, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAy", 967s # g_variant_new ("(^ay)", 967s # arg_arg_ay), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_ay: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_ay ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpo2t_vesz.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpo2t_vesz.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *const *arg_arg_as, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_boxed (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_as", 967s # (gchar *) "as", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodAs", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-as", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_as ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_as: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-as", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_as, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_as: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_as: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_as ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_as, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAs", 967s # g_variant_new ("(^as)", 967s # arg_arg_as), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_as_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_as_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_as_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_as: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_as_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_as, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAs", 967s # g_variant_new ("(^as)", 967s # arg_arg_as), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_as: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_as ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpa7cyaxex.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpa7cyaxex.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *const *arg_arg_ao, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_boxed (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_ao", 967s # (gchar *) "ao", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodAo", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-ao", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_ao: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-ao", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_ao, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ao: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_ao: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_ao ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_ao, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAo", 967s # g_variant_new ("(^ao)", 967s # arg_arg_ao), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ao_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_ao_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_ao_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_ao: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_ao_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_ao, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAo", 967s # g_variant_new ("(^ao)", 967s # arg_arg_ao), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_ao: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_ao ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmpw2hvtfkn.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmpw2hvtfkn.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # const gchar *const *arg_arg_aay, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_boxed (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_aay", 967s # (gchar *) "aay", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodAay", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-aay", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_aay: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-aay", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_aay, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_aay: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_aay: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_aay ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_aay, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAay", 967s # g_variant_new ("(^aay)", 967s # arg_arg_aay), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_aay_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_aay_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_aay_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_aay: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_aay_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # const gchar *const *arg_arg_aay, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAay", 967s # g_variant_new ("(^aay)", 967s # arg_arg_aay), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_aay: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_aay ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 967s # 967s # /tmp/tmpy15vy_1e/tmp8k134kjx.xml: 967s # 967s # 967s # 967s # 967s # 967s # 967s # 967s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy15vy_1e/tmp8k134kjx.xml', '--output', '-', '--body'] 967s # Return code: 0 967s # Output: 967s # /* 967s # * This file is generated by gdbus-codegen, do not modify it. 967s # * 967s # * The license of this code is the same as for the D-Bus interface description 967s # * it was derived from. Note that it links to GLib, so must comply with the 967s # * LGPL linking clauses. 967s # */ 967s # 967s # #ifdef HAVE_CONFIG_H 967s # # include "config.h" 967s # #endif 967s # 967s # #include 967s # #ifdef G_OS_UNIX 967s # # include 967s # #endif 967s # 967s # #ifdef G_ENABLE_DEBUG 967s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 967s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 967s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 967s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 967s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 967s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 967s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 967s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 967s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 967s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 967s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 967s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 967s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 967s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 967s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 967s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 967s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 967s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 967s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 967s # #else /* !G_ENABLE_DEBUG */ 967s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 967s # * Do not access GValues directly in your code. Instead, use the 967s # * g_value_get_*() functions 967s # */ 967s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 967s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 967s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 967s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 967s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 967s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 967s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 967s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 967s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 967s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 967s # #endif /* !G_ENABLE_DEBUG */ 967s # 967s # typedef struct 967s # { 967s # GDBusArgInfo parent_struct; 967s # gboolean use_gvariant; 967s # } _ExtendedGDBusArgInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusMethodInfo parent_struct; 967s # const gchar *signal_name; 967s # gboolean pass_fdlist; 967s # } _ExtendedGDBusMethodInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusSignalInfo parent_struct; 967s # const gchar *signal_name; 967s # } _ExtendedGDBusSignalInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusPropertyInfo parent_struct; 967s # const gchar *hyphen_name; 967s # guint use_gvariant : 1; 967s # guint emits_changed_signal : 1; 967s # } _ExtendedGDBusPropertyInfo; 967s # 967s # typedef struct 967s # { 967s # GDBusInterfaceInfo parent_struct; 967s # const gchar *hyphen_name; 967s # } _ExtendedGDBusInterfaceInfo; 967s # 967s # typedef struct 967s # { 967s # const _ExtendedGDBusPropertyInfo *info; 967s # guint prop_id; 967s # GValue orig_value; /* the value before the change */ 967s # } ChangedProperty; 967s # 967s # static void 967s # _changed_property_free (ChangedProperty *data) 967s # { 967s # g_value_unset (&data->orig_value); 967s # g_free (data); 967s # } 967s # 967s # static gboolean 967s # _g_strv_equal0 (gchar **a, gchar **b) 967s # { 967s # gboolean ret = FALSE; 967s # guint n; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # if (g_strv_length (a) != g_strv_length (b)) 967s # goto out; 967s # for (n = 0; a[n] != NULL; n++) 967s # if (g_strcmp0 (a[n], b[n]) != 0) 967s # goto out; 967s # ret = TRUE; 967s # out: 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _g_variant_equal0 (GVariant *a, GVariant *b) 967s # { 967s # gboolean ret = FALSE; 967s # if (a == NULL && b == NULL) 967s # { 967s # ret = TRUE; 967s # goto out; 967s # } 967s # if (a == NULL || b == NULL) 967s # goto out; 967s # ret = g_variant_equal (a, b); 967s # out: 967s # return ret; 967s # } 967s # 967s # G_GNUC_UNUSED static gboolean 967s # _g_value_equal (const GValue *a, const GValue *b) 967s # { 967s # gboolean ret = FALSE; 967s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 967s # switch (G_VALUE_TYPE (a)) 967s # { 967s # case G_TYPE_BOOLEAN: 967s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 967s # break; 967s # case G_TYPE_UCHAR: 967s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 967s # break; 967s # case G_TYPE_INT: 967s # ret = (g_value_get_int (a) == g_value_get_int (b)); 967s # break; 967s # case G_TYPE_UINT: 967s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 967s # break; 967s # case G_TYPE_INT64: 967s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 967s # break; 967s # case G_TYPE_UINT64: 967s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 967s # break; 967s # case G_TYPE_DOUBLE: 967s # { 967s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 967s # gdouble da = g_value_get_double (a); 967s # gdouble db = g_value_get_double (b); 967s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 967s # } 967s # break; 967s # case G_TYPE_STRING: 967s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 967s # break; 967s # case G_TYPE_VARIANT: 967s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 967s # break; 967s # default: 967s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 967s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 967s # else 967s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 967s # break; 967s # } 967s # return ret; 967s # } 967s # 967s # static void 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint G_GNUC_UNUSED, 967s # void *marshal_data) 967s # { 967s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 967s # (void *data1, 967s # GDBusMethodInvocation *arg_method_invocation, 967s # GVariant *arg_arg_asv, 967s # void *data2); 967s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 967s # GCClosure *cc = (GCClosure*) closure; 967s # void *data1, *data2; 967s # gboolean v_return; 967s # 967s # g_return_if_fail (return_value != NULL); 967s # g_return_if_fail (n_param_values == 3); 967s # 967s # if (G_CCLOSURE_SWAP_DATA (closure)) 967s # { 967s # data1 = closure->data; 967s # data2 = g_value_peek_pointer (param_values + 0); 967s # } 967s # else 967s # { 967s # data1 = g_value_peek_pointer (param_values + 0); 967s # data2 = closure->data; 967s # } 967s # 967s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 967s # (marshal_data ? marshal_data : cc->callback); 967s # 967s # v_return = 967s # callback (data1, 967s # g_marshal_value_peek_object (param_values + 1), 967s # g_marshal_value_peek_variant (param_values + 2), 967s # data2); 967s # 967s # g_value_set_boolean (return_value, v_return); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ 967s # * Code for interface org.project.UsefulInterface 967s # * ------------------------------------------------------------------------ 967s # */ 967s # 967s # /** 967s # * SECTION:OrgProjectUsefulInterface 967s # * @title: OrgProjectUsefulInterface 967s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 967s # * 967s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 967s # */ 967s # 967s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 967s # 967s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 967s # { 967s # { 967s # -1, 967s # (gchar *) "arg_asv", 967s # (gchar *) "a{sv}", 967s # NULL 967s # }, 967s # FALSE 967s # }; 967s # 967s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 967s # { 967s # { 967s # -1, 967s # (gchar *) "SingleArgMethodAsv", 967s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 967s # NULL, 967s # NULL 967s # }, 967s # "handle-single-arg-method-asv", 967s # FALSE 967s # }; 967s # 967s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 967s # { 967s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 967s # NULL 967s # }; 967s # 967s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 967s # { 967s # { 967s # -1, 967s # (gchar *) "org.project.UsefulInterface", 967s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 967s # NULL, 967s # NULL, 967s # NULL 967s # }, 967s # "org-project-useful-interface", 967s # }; 967s # 967s # 967s # /** 967s # * org_project_useful_interface_interface_info: 967s # * 967s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 967s # * 967s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 967s # */ 967s # GDBusInterfaceInfo * 967s # org_project_useful_interface_interface_info (void) 967s # { 967s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_override_properties: 967s # * @klass: The class structure for a #GObject derived class. 967s # * @property_id_begin: The property id to assign to the first overridden property. 967s # * 967s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 967s # * The properties are overridden in the order they are defined. 967s # * 967s # * Returns: The last property id. 967s # */ 967s # guint 967s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 967s # { 967s # return property_id_begin - 1; 967s # } 967s # 967s # 967s # inline static void 967s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 967s # GClosure *closure, 967s # GValue *return_value, 967s # unsigned int n_param_values, 967s # const GValue *param_values, 967s # void *invocation_hint, 967s # void *marshal_data) 967s # { 967s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 967s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 967s # } 967s # 967s # 967s # /** 967s # * OrgProjectUsefulInterface: 967s # * 967s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceIface: 967s # * @parent_iface: The parent interface. 967s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 967s # * 967s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 967s # */ 967s # 967s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 967s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 967s # 967s # static void 967s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 967s # { 967s # /* GObject signals for incoming D-Bus method calls: */ 967s # /** 967s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: A #GDBusMethodInvocation. 967s # * @arg_arg_asv: Argument passed by remote caller. 967s # * 967s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 967s # * 967s # * 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. 967s # * 967s # * 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. 967s # */ 967s # g_signal_new ("handle-single-arg-method-asv", 967s # G_TYPE_FROM_INTERFACE (iface), 967s # G_SIGNAL_RUN_LAST, 967s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 967s # g_signal_accumulator_true_handled, 967s # NULL, 967s # org_project_useful_interface_method_marshal_single_arg_method_asv, 967s # G_TYPE_BOOLEAN, 967s # 2, 967s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 967s # 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_asv: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_asv: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 967s # */ 967s # void 967s # org_project_useful_interface_call_single_arg_method_asv ( 967s # OrgProjectUsefulInterface *proxy, 967s # GVariant *arg_arg_asv, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAsv", 967s # g_variant_new ("(@a{sv})", 967s # arg_arg_asv), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # callback, 967s # user_data); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_asv_finish: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_asv_finish ( 967s # OrgProjectUsefulInterface *proxy, 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_call_single_arg_method_asv_sync: 967s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 967s # * @arg_arg_asv: Argument to pass with the method invocation. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL. 967s # * 967s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 967s # * 967s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 967s # */ 967s # gboolean 967s # org_project_useful_interface_call_single_arg_method_asv_sync ( 967s # OrgProjectUsefulInterface *proxy, 967s # GVariant *arg_arg_asv, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GVariant *_ret; 967s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 967s # "SingleArgMethodAsv", 967s # g_variant_new ("(@a{sv})", 967s # arg_arg_asv), 967s # G_DBUS_CALL_FLAGS_NONE, 967s # -1, 967s # cancellable, 967s # error); 967s # if (_ret == NULL) 967s # goto _out; 967s # g_variant_get (_ret, 967s # "()"); 967s # g_variant_unref (_ret); 967s # _out: 967s # return _ret != NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_complete_single_arg_method_asv: 967s # * @object: A #OrgProjectUsefulInterface. 967s # * @invocation: (transfer full): A #GDBusMethodInvocation. 967s # * 967s # * 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. 967s # * 967s # * This method will free @invocation, you cannot use it afterwards. 967s # */ 967s # void 967s # org_project_useful_interface_complete_single_arg_method_asv ( 967s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 967s # GDBusMethodInvocation *invocation) 967s # { 967s # g_dbus_method_invocation_return_value (invocation, 967s # g_variant_new ("()")); 967s # } 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxy: 967s # * 967s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceProxyClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceProxy. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceProxyPrivate 967s # { 967s # GData *qdata; 967s # }; 967s # 967s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_proxy_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 967s # g_datalist_clear (&proxy->priv->qdata); 967s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 967s # guint prop_id G_GNUC_UNUSED, 967s # const GValue *value G_GNUC_UNUSED, 967s # GParamSpec *pspec G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 967s # const gchar *sender_name G_GNUC_UNUSED, 967s # const gchar *signal_name, 967s # GVariant *parameters) 967s # { 967s # _ExtendedGDBusSignalInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # gsize n; 967s # guint signal_id; 967s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 967s # if (info == NULL) 967s # return; 967s # num_params = g_variant_n_children (parameters); 967s # paramv = g_new0 (GValue, num_params + 1); 967s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[0], proxy); 967s # g_variant_iter_init (&iter, parameters); 967s # n = 1; 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_signal_emitv (paramv, signal_id, 0, NULL); 967s # for (n = 0; n < num_params + 1; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 967s # GVariant *changed_properties, 967s # const gchar *const *invalidated_properties) 967s # { 967s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 967s # guint n; 967s # const gchar *key; 967s # GVariantIter *iter; 967s # _ExtendedGDBusPropertyInfo *info; 967s # g_variant_get (changed_properties, "a{sv}", &iter); 967s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 967s # g_datalist_remove_data (&proxy->priv->qdata, key); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # g_variant_iter_free (iter); 967s # for (n = 0; invalidated_properties[n] != NULL; n++) 967s # { 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 967s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 967s # if (info != NULL) 967s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 967s # } 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 967s # #else 967s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 967s # #endif 967s # 967s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusProxyClass *proxy_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 967s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 967s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 967s # 967s # proxy_class = G_DBUS_PROXY_CLASS (klass); 967s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 967s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_sync: 967s # * @connection: A #GDBusConnection. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_sync ( 967s # GDBusConnection *connection, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 967s # * @user_data: User data to pass to @callback. 967s # * 967s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 967s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 967s # */ 967s # void 967s # org_project_useful_interface_proxy_new_for_bus ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GAsyncReadyCallback callback, 967s # gpointer user_data) 967s # { 967s # 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); 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_finish: 967s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 967s # * @error: Return location for error or %NULL 967s # * 967s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_finish ( 967s # GAsyncResult *res, 967s # GError **error) 967s # { 967s # GObject *ret; 967s # GObject *source_object; 967s # source_object = g_async_result_get_source_object (res); 967s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 967s # g_object_unref (source_object); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_proxy_new_for_bus_sync: 967s # * @bus_type: A #GBusType. 967s # * @flags: Flags from the #GDBusProxyFlags enumeration. 967s # * @name: A bus name (well-known or unique). 967s # * @object_path: An object path. 967s # * @cancellable: (nullable): A #GCancellable or %NULL. 967s # * @error: Return location for error or %NULL 967s # * 967s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 967s # * 967s # * The calling thread is blocked until a reply is received. 967s # * 967s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_proxy_new_for_bus_sync ( 967s # GBusType bus_type, 967s # GDBusProxyFlags flags, 967s # const gchar *name, 967s # const gchar *object_path, 967s # GCancellable *cancellable, 967s # GError **error) 967s # { 967s # GInitable *ret; 967s # 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); 967s # if (ret != NULL) 967s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 967s # else 967s # return NULL; 967s # } 967s # 967s # 967s # /* ------------------------------------------------------------------------ */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeleton: 967s # * 967s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 967s # */ 967s # 967s # /** 967s # * OrgProjectUsefulInterfaceSkeletonClass: 967s # * @parent_class: The parent class. 967s # * 967s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 967s # */ 967s # 967s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 967s # { 967s # GValue *properties; 967s # GList *changed_properties; 967s # GSource *changed_properties_idle_source; 967s # GMainContext *context; 967s # GMutex lock; 967s # }; 967s # 967s # static void 967s # _org_project_useful_interface_skeleton_handle_method_call ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name, 967s # const gchar *method_name, 967s # GVariant *parameters, 967s # GDBusMethodInvocation *invocation, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # _ExtendedGDBusMethodInfo *info; 967s # GVariantIter iter; 967s # GVariant *child; 967s # GValue *paramv; 967s # gsize num_params; 967s # guint num_extra; 967s # gsize n; 967s # guint signal_id; 967s # GValue return_value = G_VALUE_INIT; 967s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 967s # g_assert (info != NULL); 967s # num_params = g_variant_n_children (parameters); 967s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 967s # n = 0; 967s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_set_object (¶mv[n++], skeleton); 967s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 967s # g_value_set_object (¶mv[n++], invocation); 967s # if (info->pass_fdlist) 967s # { 967s # #ifdef G_OS_UNIX 967s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 967s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 967s # #else 967s # g_assert_not_reached (); 967s # #endif 967s # } 967s # g_variant_iter_init (&iter, parameters); 967s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 967s # { 967s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 967s # if (arg_info->use_gvariant) 967s # { 967s # g_value_init (¶mv[n], G_TYPE_VARIANT); 967s # g_value_set_variant (¶mv[n], child); 967s # n++; 967s # } 967s # else 967s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 967s # g_variant_unref (child); 967s # } 967s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 967s # g_value_init (&return_value, G_TYPE_BOOLEAN); 967s # g_signal_emitv (paramv, signal_id, 0, &return_value); 967s # if (!g_value_get_boolean (&return_value)) 967s # 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); 967s # g_value_unset (&return_value); 967s # for (n = 0; n < num_params + num_extra; n++) 967s # g_value_unset (¶mv[n]); 967s # g_free (paramv); 967s # } 967s # 967s # static GVariant * 967s # _org_project_useful_interface_skeleton_handle_get_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # GVariant *ret; 967s # ret = NULL; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # g_value_init (&value, pspec->value_type); 967s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 967s # g_value_unset (&value); 967s # } 967s # return ret; 967s # } 967s # 967s # static gboolean 967s # _org_project_useful_interface_skeleton_handle_set_property ( 967s # GDBusConnection *connection G_GNUC_UNUSED, 967s # const gchar *sender G_GNUC_UNUSED, 967s # const gchar *object_path G_GNUC_UNUSED, 967s # const gchar *interface_name G_GNUC_UNUSED, 967s # const gchar *property_name, 967s # GVariant *variant, 967s # GError **error, 967s # gpointer user_data) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 967s # GValue value = G_VALUE_INIT; 967s # GParamSpec *pspec; 967s # _ExtendedGDBusPropertyInfo *info; 967s # gboolean ret; 967s # ret = FALSE; 967s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 967s # g_assert (info != NULL); 967s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 967s # if (pspec == NULL) 967s # { 967s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 967s # } 967s # else 967s # { 967s # if (info->use_gvariant) 967s # g_value_set_variant (&value, variant); 967s # else 967s # g_dbus_gvariant_to_gvalue (variant, &value); 967s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 967s # g_value_unset (&value); 967s # ret = TRUE; 967s # } 967s # return ret; 967s # } 967s # 967s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 967s # { 967s # _org_project_useful_interface_skeleton_handle_method_call, 967s # _org_project_useful_interface_skeleton_handle_get_property, 967s # _org_project_useful_interface_skeleton_handle_set_property, 967s # {NULL} 967s # }; 967s # 967s # static GDBusInterfaceInfo * 967s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return org_project_useful_interface_interface_info (); 967s # } 967s # 967s # static GDBusInterfaceVTable * 967s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 967s # { 967s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 967s # } 967s # 967s # static GVariant * 967s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 967s # 967s # GVariantBuilder builder; 967s # guint n; 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 967s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #else 967s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 967s # #endif 967s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 967s # goto out; 967s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 967s # { 967s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 967s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 967s # { 967s # GVariant *value; 967s # 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); 967s # if (value != NULL) 967s # { 967s # g_variant_take_ref (value); 967s # g_variant_builder_add (&builder, "{sv}", info->name, value); 967s # g_variant_unref (value); 967s # } 967s # } 967s # } 967s # out: 967s # return g_variant_builder_end (&builder); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #else 967s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 967s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 967s # 967s # #endif 967s # static void 967s # org_project_useful_interface_skeleton_finalize (GObject *object) 967s # { 967s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 967s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 967s # if (skeleton->priv->changed_properties_idle_source != NULL) 967s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 967s # g_main_context_unref (skeleton->priv->context); 967s # g_mutex_clear (&skeleton->priv->lock); 967s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 967s # { 967s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 967s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 967s # #else 967s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 967s # #endif 967s # 967s # g_mutex_init (&skeleton->priv->lock); 967s # skeleton->priv->context = g_main_context_ref_thread_default (); 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 967s # { 967s # GObjectClass *gobject_class; 967s # GDBusInterfaceSkeletonClass *skeleton_class; 967s # 967s # gobject_class = G_OBJECT_CLASS (klass); 967s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 967s # 967s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 967s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 967s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 967s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 967s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 967s # 967s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 967s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 967s # #endif 967s # } 967s # 967s # static void 967s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 967s # { 967s # } 967s # 967s # /** 967s # * org_project_useful_interface_skeleton_new: 967s # * 967s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 967s # * 967s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 967s # */ 967s # OrgProjectUsefulInterface * 967s # org_project_useful_interface_skeleton_new (void) 967s # { 967s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 967s # } 967s # Error: 968s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmppdeoyiyg 968s # /tmp/tmppdeoyiyg/tmpa1_rnx9o.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpa1_rnx9o.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodB", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-b", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_b ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-b", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_b, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_b: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_b ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodB", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_b_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_b_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gboolean *out_arg_b, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(b)", 968s # out_arg_b); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_b_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_b_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gboolean *out_arg_b, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodB", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(b)", 968s # out_arg_b); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_b: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_b: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_b ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gboolean arg_b) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(b)", 968s # arg_b)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpf713uoir.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpf713uoir.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodY", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-y", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_y ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-y", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_y, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_y: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_y ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodY", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_y_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_y_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # guchar *out_arg_y, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(y)", 968s # out_arg_y); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_y_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_y_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # guchar *out_arg_y, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodY", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(y)", 968s # out_arg_y); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_y: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_y: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_y ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # guchar arg_y) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(y)", 968s # arg_y)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp63ejxv3w.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp63ejxv3w.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodN", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-n", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_n ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-n", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_n, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_n: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_n ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodN", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_n_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_n_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint16 *out_arg_n, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(n)", 968s # out_arg_n); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_n_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_n_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint16 *out_arg_n, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodN", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(n)", 968s # out_arg_n); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_n: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_n: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_n ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gint16 arg_n) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(n)", 968s # arg_n)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp3t1bjfb3.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp3t1bjfb3.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodQ", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-q", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_q ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-q", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_q, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_q: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_q ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodQ", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_q_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_q_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint16 *out_arg_q, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(q)", 968s # out_arg_q); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_q_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_q_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint16 *out_arg_q, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodQ", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(q)", 968s # out_arg_q); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_q: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_q: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_q ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # guint16 arg_q) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(q)", 968s # arg_q)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmppvcynxk3.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmppvcynxk3.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodI", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-i", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_i ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-i", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_i, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_i: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_i ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodI", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_i_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_i_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint *out_arg_i, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(i)", 968s # out_arg_i); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_i_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_i_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint *out_arg_i, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodI", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(i)", 968s # out_arg_i); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_i: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_i: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_i ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gint arg_i) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(i)", 968s # arg_i)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp48i9z74p.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp48i9z74p.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodU", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-u", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_u ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-u", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_u, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_u: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_u ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodU", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_u_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_u_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint *out_arg_u, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(u)", 968s # out_arg_u); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_u_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_u_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint *out_arg_u, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodU", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(u)", 968s # out_arg_u); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_u: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_u: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_u ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # guint arg_u) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(u)", 968s # arg_u)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp4t6h9fzp.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp4t6h9fzp.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodX", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-x", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_x ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-x", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_x, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_x: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_x ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodX", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_x_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_x_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint64 *out_arg_x, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(x)", 968s # out_arg_x); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_x_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_x_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gint64 *out_arg_x, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodX", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(x)", 968s # out_arg_x); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_x: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_x: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_x ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gint64 arg_x) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(x)", 968s # arg_x)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpv2x5ni4c.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpv2x5ni4c.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodT", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-t", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_t ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-t", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_t, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_t: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_t ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodT", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_t_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_t_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint64 *out_arg_t, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(t)", 968s # out_arg_t); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_t_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_t_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # guint64 *out_arg_t, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodT", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(t)", 968s # out_arg_t); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_t: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_t: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_t ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # guint64 arg_t) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(t)", 968s # arg_t)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpidhn6l2d.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpidhn6l2d.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodD", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-d", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_d ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-d", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_d, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_d: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_d ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodD", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_d_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_d_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gdouble *out_arg_d, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(d)", 968s # out_arg_d); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_d_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_d_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gdouble *out_arg_d, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodD", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(d)", 968s # out_arg_d); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_d: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_d: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_d ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gdouble arg_d) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(d)", 968s # arg_d)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpsz3z0d14.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpsz3z0d14.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodS", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-s", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_s ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-s", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_s, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_s: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_s ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodS", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_s_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_s_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_s, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(s)", 968s # out_arg_s); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_s_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_s_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_s, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodS", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(s)", 968s # out_arg_s); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_s: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_s: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_s ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *arg_s) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(s)", 968s # arg_s)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp2g1zgk53.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp2g1zgk53.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodO", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-o", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_o ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-o", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_o, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_o: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_o ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodO", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_o_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_o_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_o, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(o)", 968s # out_arg_o); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_o_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_o_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_o, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodO", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(o)", 968s # out_arg_o); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_o: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_o: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_o ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *arg_o) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(o)", 968s # arg_o)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmph8muiue0.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmph8muiue0.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodG", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-g", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_g ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-g", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_g, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_g: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_g ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodG", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_g_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_g_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_g, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(g)", 968s # out_arg_g); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_g_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_g_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_g, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodG", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(g)", 968s # out_arg_g); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_g: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_g: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_g ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *arg_g) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(g)", 968s # arg_g)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp7ptre1_6.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp7ptre1_6.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodH", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-h", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_h ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-h", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_h, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_h: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_h ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodH", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_h_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_h_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # GVariant **out_arg_h, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(@h)", 968s # out_arg_h); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_h_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_h_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # GVariant **out_arg_h, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodH", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(@h)", 968s # out_arg_h); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_h: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_h: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_h ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # GVariant *arg_h) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(@h)", 968s # arg_h)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmplep5jz1d.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmplep5jz1d.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodAy", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-ay", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-ay", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_ay, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ay: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_ay ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAy", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ay_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_ay_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_ay, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^ay)", 968s # out_arg_ay); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ay_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_ay_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar **out_arg_ay, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAy", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^ay)", 968s # out_arg_ay); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_ay: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_ay: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_ay ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *arg_ay) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(^ay)", 968s # arg_ay)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpl31ns57x.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpl31ns57x.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodAs", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-as", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_as ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-as", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_as, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_as: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_as ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAs", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_as_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_as_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_as, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^as)", 968s # out_arg_as); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_as_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_as_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_as, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAs", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^as)", 968s # out_arg_as); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_as: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_as: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_as ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *const *arg_as) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(^as)", 968s # arg_as)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmpe2fvqvj8.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmpe2fvqvj8.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodAo", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-ao", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-ao", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_ao, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ao: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_ao ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAo", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ao_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_ao_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_ao, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^ao)", 968s # out_arg_ao); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_ao_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_ao_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_ao, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAo", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^ao)", 968s # out_arg_ao); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_ao: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_ao: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_ao ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *const *arg_ao) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(^ao)", 968s # arg_ao)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp05s_15k0.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp05s_15k0.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodAay", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-aay", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-aay", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_aay, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_aay: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_aay ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAay", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_aay_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_aay_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_aay, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^aay)", 968s # out_arg_aay); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_aay_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_aay_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # gchar ***out_arg_aay, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAay", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(^aay)", 968s # out_arg_aay); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_aay: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_aay: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_aay ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # const gchar *const *arg_aay) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(^aay)", 968s # arg_aay)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s # 968s # /tmp/tmppdeoyiyg/tmp0cdhckm9.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppdeoyiyg/tmp0cdhckm9.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "arg_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgMethodAsv", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-single-arg-method-asv", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-single-arg-method-asv", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_useful_interface_method_marshal_single_arg_method_asv, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_asv: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_useful_interface_call_single_arg_method_asv ( 968s # OrgProjectUsefulInterface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAsv", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_asv_finish: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_asv_finish ( 968s # OrgProjectUsefulInterface *proxy, 968s # GVariant **out_arg_asv, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(@a{sv})", 968s # out_arg_asv); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_call_single_arg_method_asv_sync: 968s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 968s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_useful_interface_call_single_arg_method_asv_sync ( 968s # OrgProjectUsefulInterface *proxy, 968s # GVariant **out_arg_asv, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SingleArgMethodAsv", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(@a{sv})", 968s # out_arg_asv); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_complete_single_arg_method_asv: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @arg_asv: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_useful_interface_complete_single_arg_method_asv ( 968s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # GVariant *arg_asv) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(@a{sv})", 968s # arg_asv)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpimpgs3yi 968s # /tmp/tmpimpgs3yi/tmprzunrvq4.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpimpgs3yi/tmprzunrvq4.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 20); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # g_marshal_value_peek_boolean (param_values + 2), 968s # g_marshal_value_peek_uchar (param_values + 3), 968s # g_marshal_value_peek_int (param_values + 4), 968s # g_marshal_value_peek_uint (param_values + 5), 968s # g_marshal_value_peek_int (param_values + 6), 968s # g_marshal_value_peek_uint (param_values + 7), 968s # g_marshal_value_peek_int64 (param_values + 8), 968s # g_marshal_value_peek_uint64 (param_values + 9), 968s # g_marshal_value_peek_double (param_values + 10), 968s # g_marshal_value_peek_string (param_values + 11), 968s # g_marshal_value_peek_string (param_values + 12), 968s # g_marshal_value_peek_string (param_values + 13), 968s # g_marshal_value_peek_variant (param_values + 14), 968s # g_marshal_value_peek_string (param_values + 15), 968s # g_marshal_value_peek_boxed (param_values + 16), 968s # g_marshal_value_peek_boxed (param_values + 17), 968s # g_marshal_value_peek_boxed (param_values + 18), 968s # g_marshal_value_peek_variant (param_values + 19), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.CallableIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectCallableIface 968s # * @title: OrgProjectCallableIface 968s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.CallableIface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 968s # { 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 968s # { 968s # { 968s # -1, 968s # (gchar *) "MethodWithManyArgs", 968s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "handle-method-with-many-args", 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 968s # { 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SameMethodWithManyArgs", 968s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "handle-same-method-with-many-args", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 968s # { 968s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 968s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.CallableIface", 968s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-callable-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_callable_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_callable_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_callable_iface_method_marshal_method_with_many_args ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _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, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _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, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectCallableIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 968s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.CallableIface. 968s # */ 968s # 968s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectCallableIface::handle-method-with-many-args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * @arg_an_b: Argument passed by remote caller. 968s # * @arg_an_y: Argument passed by remote caller. 968s # * @arg_an_n: Argument passed by remote caller. 968s # * @arg_an_q: Argument passed by remote caller. 968s # * @arg_an_i: Argument passed by remote caller. 968s # * @arg_an_u: Argument passed by remote caller. 968s # * @arg_an_x: Argument passed by remote caller. 968s # * @arg_an_t: Argument passed by remote caller. 968s # * @arg_an_d: Argument passed by remote caller. 968s # * @arg_an_s: Argument passed by remote caller. 968s # * @arg_an_o: Argument passed by remote caller. 968s # * @arg_an_g: Argument passed by remote caller. 968s # * @arg_an_h: Argument passed by remote caller. 968s # * @arg_an_ay: Argument passed by remote caller. 968s # * @arg_an_as: Argument passed by remote caller. 968s # * @arg_an_ao: Argument passed by remote caller. 968s # * @arg_an_aay: Argument passed by remote caller. 968s # * @arg_an_asv: Argument passed by remote caller. 968s # * 968s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-method-with-many-args", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_callable_iface_method_marshal_method_with_many_args, 968s # G_TYPE_BOOLEAN, 968s # 19, 968s # 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); 968s # 968s # /** 968s # * OrgProjectCallableIface::handle-same-method-with-many-args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * @arg_an_b: Argument passed by remote caller. 968s # * @arg_an_y: Argument passed by remote caller. 968s # * @arg_an_n: Argument passed by remote caller. 968s # * @arg_an_q: Argument passed by remote caller. 968s # * @arg_an_i: Argument passed by remote caller. 968s # * @arg_an_u: Argument passed by remote caller. 968s # * @arg_an_x: Argument passed by remote caller. 968s # * @arg_an_t: Argument passed by remote caller. 968s # * @arg_an_d: Argument passed by remote caller. 968s # * @arg_an_s: Argument passed by remote caller. 968s # * @arg_an_o: Argument passed by remote caller. 968s # * @arg_an_g: Argument passed by remote caller. 968s # * @arg_an_h: Argument passed by remote caller. 968s # * @arg_an_ay: Argument passed by remote caller. 968s # * @arg_an_as: Argument passed by remote caller. 968s # * @arg_an_ao: Argument passed by remote caller. 968s # * @arg_an_aay: Argument passed by remote caller. 968s # * @arg_an_asv: Argument passed by remote caller. 968s # * 968s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-same-method-with-many-args", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_callable_iface_method_marshal_same_method_with_many_args, 968s # G_TYPE_BOOLEAN, 968s # 19, 968s # 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); 968s # 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_callable_iface_call_method_with_many_args ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args_finish: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_method_with_many_args_finish ( 968s # OrgProjectCallableIface *proxy, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args_sync: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_method_with_many_args_sync ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_same_method_with_many_args: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_callable_iface_call_same_method_with_many_args ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "SameMethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_same_method_with_many_args_finish: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_same_method_with_many_args_finish ( 968s # OrgProjectCallableIface *proxy, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_same_method_with_many_args_sync: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_same_method_with_many_args_sync ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "SameMethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_complete_method_with_many_args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_callable_iface_complete_method_with_many_args ( 968s # OrgProjectCallableIface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("()")); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_complete_same_method_with_many_args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_callable_iface_complete_same_method_with_many_args ( 968s # OrgProjectCallableIface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("()")); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceProxy: 968s # * 968s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectCallableIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectCallableIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_callable_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_callable_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_callable_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceSkeleton: 968s # * 968s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectCallableIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectCallableIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_callable_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_callable_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_callable_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 968s # { 968s # _org_project_callable_iface_skeleton_handle_method_call, 968s # _org_project_callable_iface_skeleton_handle_get_property, 968s # _org_project_callable_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_callable_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_callable_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.OtherCallableIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectOtherCallableIface 968s # * @title: OrgProjectOtherCallableIface 968s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 968s # { 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 968s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 968s # { 968s # { 968s # -1, 968s # (gchar *) "MethodWithManyArgs", 968s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "handle-method-with-many-args", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 968s # { 968s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.OtherCallableIface", 968s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-other-callable-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_other_callable_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_other_callable_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _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, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectOtherCallableIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherCallableIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 968s # */ 968s # 968s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 968s # * @object: A #OrgProjectOtherCallableIface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * @arg_an_b: Argument passed by remote caller. 968s # * @arg_an_y: Argument passed by remote caller. 968s # * @arg_an_n: Argument passed by remote caller. 968s # * @arg_an_q: Argument passed by remote caller. 968s # * @arg_an_i: Argument passed by remote caller. 968s # * @arg_an_u: Argument passed by remote caller. 968s # * @arg_an_x: Argument passed by remote caller. 968s # * @arg_an_t: Argument passed by remote caller. 968s # * @arg_an_d: Argument passed by remote caller. 968s # * @arg_an_s: Argument passed by remote caller. 968s # * @arg_an_o: Argument passed by remote caller. 968s # * @arg_an_g: Argument passed by remote caller. 968s # * @arg_an_h: Argument passed by remote caller. 968s # * @arg_an_ay: Argument passed by remote caller. 968s # * @arg_an_as: Argument passed by remote caller. 968s # * @arg_an_ao: Argument passed by remote caller. 968s # * @arg_an_aay: Argument passed by remote caller. 968s # * @arg_an_asv: Argument passed by remote caller. 968s # * 968s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-method-with-many-args", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_other_callable_iface_method_marshal_method_with_many_args, 968s # G_TYPE_BOOLEAN, 968s # 19, 968s # 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); 968s # 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_call_method_with_many_args: 968s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_other_callable_iface_call_method_with_many_args ( 968s # OrgProjectOtherCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_call_method_with_many_args_finish: 968s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_other_callable_iface_call_method_with_many_args_finish ( 968s # OrgProjectOtherCallableIface *proxy, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_call_method_with_many_args_sync: 968s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 968s # * @arg_an_b: Argument to pass with the method invocation. 968s # * @arg_an_y: Argument to pass with the method invocation. 968s # * @arg_an_n: Argument to pass with the method invocation. 968s # * @arg_an_q: Argument to pass with the method invocation. 968s # * @arg_an_i: Argument to pass with the method invocation. 968s # * @arg_an_u: Argument to pass with the method invocation. 968s # * @arg_an_x: Argument to pass with the method invocation. 968s # * @arg_an_t: Argument to pass with the method invocation. 968s # * @arg_an_d: Argument to pass with the method invocation. 968s # * @arg_an_s: Argument to pass with the method invocation. 968s # * @arg_an_o: Argument to pass with the method invocation. 968s # * @arg_an_g: Argument to pass with the method invocation. 968s # * @arg_an_h: Argument to pass with the method invocation. 968s # * @arg_an_ay: Argument to pass with the method invocation. 968s # * @arg_an_as: Argument to pass with the method invocation. 968s # * @arg_an_ao: Argument to pass with the method invocation. 968s # * @arg_an_aay: Argument to pass with the method invocation. 968s # * @arg_an_asv: Argument to pass with the method invocation. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_other_callable_iface_call_method_with_many_args_sync ( 968s # OrgProjectOtherCallableIface *proxy, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "()"); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_complete_method_with_many_args: 968s # * @object: A #OrgProjectOtherCallableIface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_other_callable_iface_complete_method_with_many_args ( 968s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("()")); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherCallableIfaceProxy: 968s # * 968s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherCallableIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectOtherCallableIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_callable_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_callable_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherCallableIface * 968s # org_project_other_callable_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherCallableIface * 968s # org_project_other_callable_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_callable_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherCallableIface * 968s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherCallableIface * 968s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherCallableIfaceSkeleton: 968s # * 968s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherCallableIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_other_callable_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_other_callable_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_other_callable_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 968s # { 968s # _org_project_other_callable_iface_skeleton_handle_method_call, 968s # _org_project_other_callable_iface_skeleton_handle_get_property, 968s # _org_project_other_callable_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_other_callable_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_other_callable_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectOtherCallableIface * 968s # org_project_other_callable_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpzw6fcfte 968s # /tmp/tmpzw6fcfte/tmpcr6hzldn.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzw6fcfte/tmpcr6hzldn.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.CallableIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectCallableIface 968s # * @title: OrgProjectCallableIface 968s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for org.project.CallableIface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 968s # { 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 968s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 968s # { 968s # { 968s # -1, 968s # (gchar *) "MethodWithManyArgs", 968s # NULL, 968s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-method-with-many-args", 968s # FALSE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 968s # { 968s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.CallableIface", 968s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-callable-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_callable_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_callable_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_callable_iface_method_marshal_method_with_many_args ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectCallableIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.CallableIface. 968s # */ 968s # 968s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * OrgProjectCallableIface::handle-method-with-many-args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * 968s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-method-with-many-args", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # org_project_callable_iface_method_marshal_method_with_many_args, 968s # G_TYPE_BOOLEAN, 968s # 1, 968s # G_TYPE_DBUS_METHOD_INVOCATION); 968s # 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # org_project_callable_iface_call_method_with_many_args ( 968s # OrgProjectCallableIface *proxy, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args_finish: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_method_with_many_args_finish ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean *out_an_b, 968s # guchar *out_an_y, 968s # gint16 *out_an_n, 968s # guint16 *out_an_q, 968s # gint *out_an_i, 968s # guint *out_an_u, 968s # gint64 *out_an_x, 968s # guint64 *out_an_t, 968s # gdouble *out_an_d, 968s # gchar **out_an_s, 968s # gchar **out_an_o, 968s # gchar **out_an_g, 968s # GVariant **out_an_h, 968s # gchar **out_an_ay, 968s # gchar ***out_an_as, 968s # gchar ***out_an_ao, 968s # gchar ***out_an_aay, 968s # GVariant **out_an_asv, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # out_an_b, 968s # out_an_y, 968s # out_an_n, 968s # out_an_q, 968s # out_an_i, 968s # out_an_u, 968s # out_an_x, 968s # out_an_t, 968s # out_an_d, 968s # out_an_s, 968s # out_an_o, 968s # out_an_g, 968s # out_an_h, 968s # out_an_ay, 968s # out_an_as, 968s # out_an_ao, 968s # out_an_aay, 968s # out_an_asv); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_call_method_with_many_args_sync: 968s # * @proxy: A #OrgProjectCallableIfaceProxy. 968s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 968s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # org_project_callable_iface_call_method_with_many_args_sync ( 968s # OrgProjectCallableIface *proxy, 968s # gboolean *out_an_b, 968s # guchar *out_an_y, 968s # gint16 *out_an_n, 968s # guint16 *out_an_q, 968s # gint *out_an_i, 968s # guint *out_an_u, 968s # gint64 *out_an_x, 968s # guint64 *out_an_t, 968s # gdouble *out_an_d, 968s # gchar **out_an_s, 968s # gchar **out_an_o, 968s # gchar **out_an_g, 968s # GVariant **out_an_h, 968s # gchar **out_an_ay, 968s # gchar ***out_an_as, 968s # gchar ***out_an_ao, 968s # gchar ***out_an_aay, 968s # GVariant **out_an_asv, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 968s # "MethodWithManyArgs", 968s # g_variant_new ("()"), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # out_an_b, 968s # out_an_y, 968s # out_an_n, 968s # out_an_q, 968s # out_an_i, 968s # out_an_u, 968s # out_an_x, 968s # out_an_t, 968s # out_an_d, 968s # out_an_s, 968s # out_an_o, 968s # out_an_g, 968s # out_an_h, 968s # out_an_ay, 968s # out_an_as, 968s # out_an_ao, 968s # out_an_aay, 968s # out_an_asv); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_complete_method_with_many_args: 968s # * @object: A #OrgProjectCallableIface. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @an_b: Parameter to return. 968s # * @an_y: Parameter to return. 968s # * @an_n: Parameter to return. 968s # * @an_q: Parameter to return. 968s # * @an_i: Parameter to return. 968s # * @an_u: Parameter to return. 968s # * @an_x: Parameter to return. 968s # * @an_t: Parameter to return. 968s # * @an_d: Parameter to return. 968s # * @an_s: Parameter to return. 968s # * @an_o: Parameter to return. 968s # * @an_g: Parameter to return. 968s # * @an_h: Parameter to return. 968s # * @an_ay: Parameter to return. 968s # * @an_as: Parameter to return. 968s # * @an_ao: Parameter to return. 968s # * @an_aay: Parameter to return. 968s # * @an_asv: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # org_project_callable_iface_complete_method_with_many_args ( 968s # OrgProjectCallableIface *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # gboolean an_b, 968s # guchar an_y, 968s # gint16 an_n, 968s # guint16 an_q, 968s # gint an_i, 968s # guint an_u, 968s # gint64 an_x, 968s # guint64 an_t, 968s # gdouble an_d, 968s # const gchar *an_s, 968s # const gchar *an_o, 968s # const gchar *an_g, 968s # GVariant *an_h, 968s # const gchar *an_ay, 968s # const gchar *const *an_as, 968s # const gchar *const *an_ao, 968s # const gchar *const *an_aay, 968s # GVariant *an_asv) 968s # { 968s # g_dbus_method_invocation_return_value (invocation, 968s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # an_b, 968s # an_y, 968s # an_n, 968s # an_q, 968s # an_i, 968s # an_u, 968s # an_x, 968s # an_t, 968s # an_d, 968s # an_s, 968s # an_o, 968s # an_g, 968s # an_h, 968s # an_ay, 968s # an_as, 968s # an_ao, 968s # an_aay, 968s # an_asv)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceProxy: 968s # * 968s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectCallableIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectCallableIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_callable_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_callable_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_callable_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_CALLABLE_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceSkeleton: 968s # * 968s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectCallableIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectCallableIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectCallableIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_callable_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_callable_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_callable_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 968s # { 968s # _org_project_callable_iface_skeleton_handle_method_call, 968s # _org_project_callable_iface_skeleton_handle_get_property, 968s # _org_project_callable_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_callable_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_callable_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_callable_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectCallableIface * 968s # org_project_callable_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmp1p_twaw4 968s # /tmp/tmp1p_twaw4/tmpd8ty1n3m.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1p_twaw4/tmpd8ty1n3m.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 968s # (void *data1, 968s # GDBusMethodInvocation *arg_method_invocation, 968s # GUnixFDList *arg_fd_list, 968s # const gchar *arg_greeting, 968s # void *data2); 968s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # gboolean v_return; 968s # 968s # g_return_if_fail (return_value != NULL); 968s # g_return_if_fail (n_param_values == 4); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # v_return = 968s # callback (data1, 968s # g_marshal_value_peek_object (param_values + 1), 968s # g_marshal_value_peek_object (param_values + 2), 968s # g_marshal_value_peek_string (param_values + 3), 968s # data2); 968s # 968s # g_value_set_boolean (return_value, v_return); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface test.FDPassing 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:TestFDPassing 968s # * @title: TestFDPassing 968s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 968s # * 968s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 968s # */ 968s # 968s # /* ---- Introspection data for test.FDPassing ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 968s # { 968s # { 968s # -1, 968s # (gchar *) "greeting", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 968s # { 968s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 968s # { 968s # { 968s # -1, 968s # (gchar *) "response", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 968s # { 968s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 968s # { 968s # { 968s # -1, 968s # (gchar *) "HelloFD", 968s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 968s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 968s # NULL 968s # }, 968s # "handle-hello-fd", 968s # TRUE 968s # }; 968s # 968s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 968s # { 968s # &_test_fdpassing_method_info_hello_fd.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "test.FDPassing", 968s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 968s # NULL, 968s # NULL, 968s # NULL 968s # }, 968s # "test-fdpassing", 968s # }; 968s # 968s # 968s # /** 968s # * test_fdpassing_interface_info: 968s # * 968s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # test_fdpassing_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * test_fdpassing_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # test_fdpassing_method_marshal_hello_fd ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * TestFDPassing: 968s # * 968s # * Abstract interface type for the D-Bus interface test.FDPassing. 968s # */ 968s # 968s # /** 968s # * TestFDPassingIface: 968s # * @parent_iface: The parent interface. 968s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 968s # * 968s # * Virtual table for the D-Bus interface test.FDPassing. 968s # */ 968s # 968s # typedef TestFDPassingIface TestFDPassingInterface; 968s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 968s # 968s # static void 968s # test_fdpassing_default_init (TestFDPassingIface *iface) 968s # { 968s # /* GObject signals for incoming D-Bus method calls: */ 968s # /** 968s # * TestFDPassing::handle-hello-fd: 968s # * @object: A #TestFDPassing. 968s # * @invocation: A #GDBusMethodInvocation. 968s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 968s # * @arg_greeting: Argument passed by remote caller. 968s # * 968s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 968s # * 968s # * 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. 968s # * 968s # * 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. 968s # */ 968s # g_signal_new ("handle-hello-fd", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 968s # g_signal_accumulator_true_handled, 968s # NULL, 968s # test_fdpassing_method_marshal_hello_fd, 968s # G_TYPE_BOOLEAN, 968s # 3, 968s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 968s # 968s # } 968s # 968s # /** 968s # * test_fdpassing_call_hello_fd: 968s # * @proxy: A #TestFDPassingProxy. 968s # * @arg_greeting: Argument to pass with the method invocation. 968s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 968s # * 968s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 968s # */ 968s # void 968s # test_fdpassing_call_hello_fd ( 968s # TestFDPassing *proxy, 968s # const gchar *arg_greeting, 968s # GUnixFDList *fd_list, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 968s # "HelloFD", 968s # g_variant_new ("(s)", 968s # arg_greeting), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # fd_list, 968s # cancellable, 968s # callback, 968s # user_data); 968s # } 968s # 968s # /** 968s # * test_fdpassing_call_hello_fd_finish: 968s # * @proxy: A #TestFDPassingProxy. 968s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # test_fdpassing_call_hello_fd_finish ( 968s # TestFDPassing *proxy, 968s # gchar **out_response, 968s # GUnixFDList **out_fd_list, 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(s)", 968s # out_response); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * test_fdpassing_call_hello_fd_sync: 968s # * @proxy: A #TestFDPassingProxy. 968s # * @arg_greeting: Argument to pass with the method invocation. 968s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 968s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 968s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL. 968s # * 968s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 968s # * 968s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 968s # * 968s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 968s # */ 968s # gboolean 968s # test_fdpassing_call_hello_fd_sync ( 968s # TestFDPassing *proxy, 968s # const gchar *arg_greeting, 968s # GUnixFDList *fd_list, 968s # gchar **out_response, 968s # GUnixFDList **out_fd_list, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GVariant *_ret; 968s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 968s # "HelloFD", 968s # g_variant_new ("(s)", 968s # arg_greeting), 968s # G_DBUS_CALL_FLAGS_NONE, 968s # -1, 968s # fd_list, 968s # out_fd_list, 968s # cancellable, 968s # error); 968s # if (_ret == NULL) 968s # goto _out; 968s # g_variant_get (_ret, 968s # "(s)", 968s # out_response); 968s # g_variant_unref (_ret); 968s # _out: 968s # return _ret != NULL; 968s # } 968s # 968s # /** 968s # * test_fdpassing_complete_hello_fd: 968s # * @object: A #TestFDPassing. 968s # * @invocation: (transfer full): A #GDBusMethodInvocation. 968s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 968s # * @response: Parameter to return. 968s # * 968s # * 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. 968s # * 968s # * This method will free @invocation, you cannot use it afterwards. 968s # */ 968s # void 968s # test_fdpassing_complete_hello_fd ( 968s # TestFDPassing *object G_GNUC_UNUSED, 968s # GDBusMethodInvocation *invocation, 968s # GUnixFDList *fd_list, 968s # const gchar *response) 968s # { 968s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 968s # g_variant_new ("(s)", 968s # response), 968s # fd_list); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * TestFDPassingProxy: 968s # * 968s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * TestFDPassingProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #TestFDPassingProxy. 968s # */ 968s # 968s # struct _TestFDPassingProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (TestFDPassingProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # test_fdpassing_proxy_finalize (GObject *object) 968s # { 968s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = test_fdpassing_proxy_finalize; 968s # gobject_class->get_property = test_fdpassing_proxy_get_property; 968s # gobject_class->set_property = test_fdpassing_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 968s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * test_fdpassing_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # test_fdpassing_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * test_fdpassing_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with test_fdpassing_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # TestFDPassing * 968s # test_fdpassing_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return TEST_FDPASSING (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * test_fdpassing_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # TestFDPassing * 968s # test_fdpassing_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return TEST_FDPASSING (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * test_fdpassing_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # test_fdpassing_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * test_fdpassing_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # TestFDPassing * 968s # test_fdpassing_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return TEST_FDPASSING (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * test_fdpassing_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # TestFDPassing * 968s # test_fdpassing_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return TEST_FDPASSING (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * TestFDPassingSkeleton: 968s # * 968s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * TestFDPassingSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #TestFDPassingSkeleton. 968s # */ 968s # 968s # struct _TestFDPassingSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _test_fdpassing_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _test_fdpassing_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _test_fdpassing_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 968s # { 968s # _test_fdpassing_skeleton_handle_method_call, 968s # _test_fdpassing_skeleton_handle_get_property, 968s # _test_fdpassing_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return test_fdpassing_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (TestFDPassingSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # test_fdpassing_skeleton_finalize (GObject *object) 968s # { 968s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * test_fdpassing_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 968s # * 968s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 968s # */ 968s # TestFDPassing * 968s # test_fdpassing_skeleton_new (void) 968s # { 968s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 15 __main__.TestCodegen.test_generate_rst 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpb90_c4l7 968s # /tmp/tmpb90_c4l7/tmpzqvub6iw.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb90_c4l7/tmpzqvub6iw.xml', '--generate-rst', 'test'] 968s # Return code: 0 968s # Output: 968s # 968s # Error: 968s ok 16 __main__.TestCodegen.test_generate_rst_method 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpbhs3eah1 968s # /tmp/tmpbhs3eah1/tmp17744fl5.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbhs3eah1/tmp17744fl5.xml', '--generate-rst', 'test'] 968s # Return code: 0 968s # Output: 968s # 968s # Error: 968s ok 17 __main__.TestCodegen.test_generate_rst_property 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpg4ae2zju 968s # /tmp/tmpg4ae2zju/tmppoe3avxz.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpg4ae2zju/tmppoe3avxz.xml', '--generate-rst', 'test'] 968s # Return code: 0 968s # Output: 968s # 968s # Error: 968s # Executing: glib/codegen.py.test 968s ok 18 __main__.TestCodegen.test_generate_rst_signal 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpb5hjkkmz 968s # /tmp/tmpb5hjkkmz/tmp8bbzaip6.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb5hjkkmz/tmp8bbzaip6.xml', '--generate-rst', 'test'] 968s # Return code: 0 968s # Output: 968s # 968s # Error: 968s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmptewnhofu 968s # /tmp/tmptewnhofu/tmpviz4u_bm.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptewnhofu/tmpviz4u_bm.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 968s # GClosure *closure, 968s # GValue *return_value G_GNUC_UNUSED, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 968s # (void *data1, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv, 968s # void *data2); 968s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # 968s # g_return_if_fail (n_param_values == 19); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # callback (data1, 968s # g_marshal_value_peek_boolean (param_values + 1), 968s # g_marshal_value_peek_uchar (param_values + 2), 968s # g_marshal_value_peek_int (param_values + 3), 968s # g_marshal_value_peek_uint (param_values + 4), 968s # g_marshal_value_peek_int (param_values + 5), 968s # g_marshal_value_peek_uint (param_values + 6), 968s # g_marshal_value_peek_int64 (param_values + 7), 968s # g_marshal_value_peek_uint64 (param_values + 8), 968s # g_marshal_value_peek_double (param_values + 9), 968s # g_marshal_value_peek_string (param_values + 10), 968s # g_marshal_value_peek_string (param_values + 11), 968s # g_marshal_value_peek_string (param_values + 12), 968s # g_marshal_value_peek_variant (param_values + 13), 968s # g_marshal_value_peek_string (param_values + 14), 968s # g_marshal_value_peek_boxed (param_values + 15), 968s # g_marshal_value_peek_boxed (param_values + 16), 968s # g_marshal_value_peek_boxed (param_values + 17), 968s # g_marshal_value_peek_variant (param_values + 18), 968s # data2); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.SignalingIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectSignalingIface 968s # * @title: OrgProjectSignalingIface 968s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.SignalingIface ---- */ 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SignalWithManyArgs", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 968s # NULL 968s # }, 968s # "signal-with-many-args" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.SignalingIface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-signaling-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_signaling_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectSignalingIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectSignalingIface::signal-with-many-args: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_b: Argument. 968s # * @arg_an_y: Argument. 968s # * @arg_an_n: Argument. 968s # * @arg_an_q: Argument. 968s # * @arg_an_i: Argument. 968s # * @arg_an_u: Argument. 968s # * @arg_an_x: Argument. 968s # * @arg_an_t: Argument. 968s # * @arg_an_d: Argument. 968s # * @arg_an_s: Argument. 968s # * @arg_an_o: Argument. 968s # * @arg_an_g: Argument. 968s # * @arg_an_h: Argument. 968s # * @arg_an_ay: Argument. 968s # * @arg_an_as: Argument. 968s # * @arg_an_ao: Argument. 968s # * @arg_an_aay: Argument. 968s # * @arg_an_asv: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 968s # g_signal_new ("signal-with-many-args", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 968s # G_TYPE_NONE, 968s # 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); 968s # 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_signal_with_many_args: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_b: Argument to pass with the signal. 968s # * @arg_an_y: Argument to pass with the signal. 968s # * @arg_an_n: Argument to pass with the signal. 968s # * @arg_an_q: Argument to pass with the signal. 968s # * @arg_an_i: Argument to pass with the signal. 968s # * @arg_an_u: Argument to pass with the signal. 968s # * @arg_an_x: Argument to pass with the signal. 968s # * @arg_an_t: Argument to pass with the signal. 968s # * @arg_an_d: Argument to pass with the signal. 968s # * @arg_an_s: Argument to pass with the signal. 968s # * @arg_an_o: Argument to pass with the signal. 968s # * @arg_an_g: Argument to pass with the signal. 968s # * @arg_an_h: Argument to pass with the signal. 968s # * @arg_an_ay: Argument to pass with the signal. 968s # * @arg_an_as: Argument to pass with the signal. 968s # * @arg_an_ao: Argument to pass with the signal. 968s # * @arg_an_aay: Argument to pass with the signal. 968s # * @arg_an_asv: Argument to pass with the signal. 968s # * 968s # * Emits the "SignalWithManyArgs" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_signal_with_many_args ( 968s # OrgProjectSignalingIface *object, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv) 968s # { 968s # 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); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxy: 968s # * 968s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeleton: 968s # * 968s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_signaling_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_signaling_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_signaling_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 968s # { 968s # _org_project_signaling_iface_skeleton_handle_method_call, 968s # _org_project_signaling_iface_skeleton_handle_get_property, 968s # _org_project_signaling_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_signaling_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 968s # OrgProjectSignalingIface *object, 968s # gboolean arg_an_b, 968s # guchar arg_an_y, 968s # gint16 arg_an_n, 968s # guint16 arg_an_q, 968s # gint arg_an_i, 968s # guint arg_an_u, 968s # gint64 arg_an_x, 968s # guint64 arg_an_t, 968s # gdouble arg_an_d, 968s # const gchar *arg_an_s, 968s # const gchar *arg_an_o, 968s # const gchar *arg_an_g, 968s # GVariant *arg_an_h, 968s # const gchar *arg_an_ay, 968s # const gchar *const *arg_an_as, 968s # const gchar *const *arg_an_ao, 968s # const gchar *const *arg_an_aay, 968s # GVariant *arg_an_asv) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 968s # arg_an_b, 968s # arg_an_y, 968s # arg_an_n, 968s # arg_an_q, 968s # arg_an_i, 968s # arg_an_u, 968s # arg_an_x, 968s # arg_an_t, 968s # arg_an_d, 968s # arg_an_s, 968s # arg_an_o, 968s # arg_an_g, 968s # arg_an_h, 968s # arg_an_ay, 968s # arg_an_as, 968s # arg_an_ao, 968s # arg_an_aay, 968s # arg_an_asv)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmppoiccryc 968s # /tmp/tmppoiccryc/tmp_w529s1_.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppoiccryc/tmp_w529s1_.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_VOID__INT64 ( 968s # GClosure *closure, 968s # GValue *return_value G_GNUC_UNUSED, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 968s # (void *data1, 968s # gint64 arg_an_x, 968s # void *data2); 968s # _GDbusCodegenMarshalVoid_Int64Func callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # callback (data1, 968s # g_marshal_value_peek_int64 (param_values + 1), 968s # data2); 968s # } 968s # 968s # static void 968s # _g_dbus_codegen_marshal_VOID__UINT64 ( 968s # GClosure *closure, 968s # GValue *return_value G_GNUC_UNUSED, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint G_GNUC_UNUSED, 968s # void *marshal_data) 968s # { 968s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 968s # (void *data1, 968s # guint64 arg_an_t, 968s # void *data2); 968s # _GDbusCodegenMarshalVoid_Uint64Func callback; 968s # GCClosure *cc = (GCClosure*) closure; 968s # void *data1, *data2; 968s # 968s # g_return_if_fail (n_param_values == 2); 968s # 968s # if (G_CCLOSURE_SWAP_DATA (closure)) 968s # { 968s # data1 = closure->data; 968s # data2 = g_value_peek_pointer (param_values + 0); 968s # } 968s # else 968s # { 968s # data1 = g_value_peek_pointer (param_values + 0); 968s # data2 = closure->data; 968s # } 968s # 968s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 968s # (marshal_data ? marshal_data : cc->callback); 968s # 968s # callback (data1, 968s # g_marshal_value_peek_uint64 (param_values + 1), 968s # data2); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.SignalingIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectSignalingIface 968s # * @title: OrgProjectSignalingIface 968s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 968s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.SignalingIface ---- */ 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 968s # { 968s # { 968s # -1, 968s # (gchar *) "NoArgSignal", 968s # NULL, 968s # NULL 968s # }, 968s # "no-arg-signal" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_b", 968s # (gchar *) "b", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalB", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-b" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_y", 968s # (gchar *) "y", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalY", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-y" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_n", 968s # (gchar *) "n", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalN", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-n" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_q", 968s # (gchar *) "q", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalQ", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-q" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_i", 968s # (gchar *) "i", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalI", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-i" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_u", 968s # (gchar *) "u", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalU", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-u" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_x", 968s # (gchar *) "x", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalX", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-x" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_t", 968s # (gchar *) "t", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalT", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-t" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_d", 968s # (gchar *) "d", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalD", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-d" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_s", 968s # (gchar *) "s", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalS", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-s" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_o", 968s # (gchar *) "o", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalO", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-o" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_g", 968s # (gchar *) "g", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalG", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-g" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_h", 968s # (gchar *) "h", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalH", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-h" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ay", 968s # (gchar *) "ay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalAY", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-ay" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_as", 968s # (gchar *) "as", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalAS", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-as" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_ao", 968s # (gchar *) "ao", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalAO", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-ao" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_aay", 968s # (gchar *) "aay", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalAAY", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-aay" 968s # }; 968s # 968s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "an_asv", 968s # (gchar *) "a{sv}", 968s # NULL 968s # }, 968s # FALSE 968s # }; 968s # 968s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SingleArgSignalASV", 968s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 968s # NULL 968s # }, 968s # "single-arg-signal-asv" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 968s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.SignalingIface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-signaling-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_signaling_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VOID (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__BOOLEAN (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__UCHAR (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__INT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__UINT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__INT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__UINT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__DOUBLE (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__STRING (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__STRING (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__STRING (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VARIANT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__STRING (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__BOXED (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__BOXED (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__BOXED (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VARIANT (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectSignalingIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 968s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 968s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 968s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 968s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 968s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 968s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 968s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 968s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 968s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 968s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 968s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 968s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 968s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 968s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 968s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 968s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 968s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 968s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectSignalingIface::no-arg-signal: 968s # * @object: A #OrgProjectSignalingIface. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 968s # g_signal_new ("no-arg-signal", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_no_arg_signal, 968s # G_TYPE_NONE, 968s # 0); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-b: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_b: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 968s # g_signal_new ("single-arg-signal-b", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_BOOLEAN); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-y: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_y: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 968s # g_signal_new ("single-arg-signal-y", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_UCHAR); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-n: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_n: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 968s # g_signal_new ("single-arg-signal-n", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_INT); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-q: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_q: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 968s # g_signal_new ("single-arg-signal-q", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_UINT); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-i: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_i: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 968s # g_signal_new ("single-arg-signal-i", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_INT); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-u: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_u: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 968s # g_signal_new ("single-arg-signal-u", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_UINT); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-x: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_x: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 968s # g_signal_new ("single-arg-signal-x", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_INT64); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-t: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_t: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 968s # g_signal_new ("single-arg-signal-t", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_UINT64); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-d: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_d: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 968s # g_signal_new ("single-arg-signal-d", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_DOUBLE); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-s: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_s: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 968s # g_signal_new ("single-arg-signal-s", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRING); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-o: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_o: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 968s # g_signal_new ("single-arg-signal-o", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRING); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-g: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_g: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 968s # g_signal_new ("single-arg-signal-g", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRING); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-h: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_h: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 968s # g_signal_new ("single-arg-signal-h", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_VARIANT); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-ay: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_ay: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 968s # g_signal_new ("single-arg-signal-ay", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRING); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-as: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_as: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 968s # g_signal_new ("single-arg-signal-as", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRV); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-ao: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_ao: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 968s # g_signal_new ("single-arg-signal-ao", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRV); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-aay: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_aay: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 968s # g_signal_new ("single-arg-signal-aay", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_STRV); 968s # 968s # /** 968s # * OrgProjectSignalingIface::single-arg-signal-asv: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_asv: Argument. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 968s # g_signal_new ("single-arg-signal-asv", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 968s # G_TYPE_NONE, 968s # 1, G_TYPE_VARIANT); 968s # 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_no_arg_signal: 968s # * @object: A #OrgProjectSignalingIface. 968s # * 968s # * Emits the "NoArgSignal" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_no_arg_signal ( 968s # OrgProjectSignalingIface *object) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_b: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_b: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalB" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_b ( 968s # OrgProjectSignalingIface *object, 968s # gboolean arg_an_b) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_y: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_y: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalY" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_y ( 968s # OrgProjectSignalingIface *object, 968s # guchar arg_an_y) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_n: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_n: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalN" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_n ( 968s # OrgProjectSignalingIface *object, 968s # gint16 arg_an_n) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_q: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_q: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalQ" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_q ( 968s # OrgProjectSignalingIface *object, 968s # guint16 arg_an_q) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_i: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_i: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalI" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_i ( 968s # OrgProjectSignalingIface *object, 968s # gint arg_an_i) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_u: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_u: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalU" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_u ( 968s # OrgProjectSignalingIface *object, 968s # guint arg_an_u) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_x: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_x: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalX" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_x ( 968s # OrgProjectSignalingIface *object, 968s # gint64 arg_an_x) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_t: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_t: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalT" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_t ( 968s # OrgProjectSignalingIface *object, 968s # guint64 arg_an_t) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_d: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_d: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalD" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_d ( 968s # OrgProjectSignalingIface *object, 968s # gdouble arg_an_d) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_s: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_s: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalS" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_s ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_s) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_o: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_o: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalO" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_o ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_o) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_g: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_g: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalG" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_g ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_g) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_h: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_h: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalH" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_h ( 968s # OrgProjectSignalingIface *object, 968s # GVariant *arg_an_h) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_ay: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_ay: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalAY" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_ay ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_ay) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_as: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_as: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalAS" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_as ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_as) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_ao: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_ao: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalAO" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_ao ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_ao) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_aay: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_aay: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalAAY" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_aay ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_aay) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_single_arg_signal_asv: 968s # * @object: A #OrgProjectSignalingIface. 968s # * @arg_an_asv: Argument to pass with the signal. 968s # * 968s # * Emits the "SingleArgSignalASV" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_single_arg_signal_asv ( 968s # OrgProjectSignalingIface *object, 968s # GVariant *arg_an_asv) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxy: 968s # * 968s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeleton: 968s # * 968s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_signaling_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_signaling_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_signaling_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 968s # { 968s # _org_project_signaling_iface_skeleton_handle_method_call, 968s # _org_project_signaling_iface_skeleton_handle_get_property, 968s # _org_project_signaling_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_signaling_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_no_arg_signal ( 968s # OrgProjectSignalingIface *object) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 968s # OrgProjectSignalingIface *object, 968s # gboolean arg_an_b) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 968s # arg_an_b)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 968s # OrgProjectSignalingIface *object, 968s # guchar arg_an_y) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 968s # arg_an_y)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 968s # OrgProjectSignalingIface *object, 968s # gint16 arg_an_n) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 968s # arg_an_n)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 968s # OrgProjectSignalingIface *object, 968s # guint16 arg_an_q) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 968s # arg_an_q)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 968s # OrgProjectSignalingIface *object, 968s # gint arg_an_i) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 968s # arg_an_i)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 968s # OrgProjectSignalingIface *object, 968s # guint arg_an_u) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 968s # arg_an_u)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 968s # OrgProjectSignalingIface *object, 968s # gint64 arg_an_x) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 968s # arg_an_x)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 968s # OrgProjectSignalingIface *object, 968s # guint64 arg_an_t) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 968s # arg_an_t)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 968s # OrgProjectSignalingIface *object, 968s # gdouble arg_an_d) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 968s # arg_an_d)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_s) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 968s # arg_an_s)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_o) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 968s # arg_an_o)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_g) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 968s # arg_an_g)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 968s # OrgProjectSignalingIface *object, 968s # GVariant *arg_an_h) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 968s # arg_an_h)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *arg_an_ay) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 968s # arg_an_ay)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_as) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 968s # arg_an_as)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_ao) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 968s # arg_an_ao)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 968s # OrgProjectSignalingIface *object, 968s # const gchar *const *arg_an_aay) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 968s # arg_an_aay)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 968s # OrgProjectSignalingIface *object, 968s # GVariant *arg_an_asv) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 968s # arg_an_asv)); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 968s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 968s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 968s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 968s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 968s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 968s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 968s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 968s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 968s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 968s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 968s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 968s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 968s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 968s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 968s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 968s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 968s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 968s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmpowsu2aqr 968s # /tmp/tmpowsu2aqr/tmpvvzm9c9k.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpowsu2aqr/tmpvvzm9c9k.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.UsefulInterface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectUsefulInterface 968s # * @title: OrgProjectUsefulInterface 968s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SimpleSignal", 968s # NULL, 968s # NULL 968s # }, 968s # "simple-signal" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 968s # { 968s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.UsefulInterface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-useful-interface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_useful_interface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_useful_interface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_useful_interface_signal_marshal_simple_signal ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VOID (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectUsefulInterface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 968s # */ 968s # 968s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectUsefulInterface::simple-signal: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 968s # g_signal_new ("simple-signal", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 968s # NULL, 968s # NULL, 968s # org_project_useful_interface_signal_marshal_simple_signal, 968s # G_TYPE_NONE, 968s # 0); 968s # 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_emit_simple_signal: 968s # * @object: A #OrgProjectUsefulInterface. 968s # * 968s # * Emits the "SimpleSignal" D-Bus signal. 968s # */ 968s # void 968s # org_project_useful_interface_emit_simple_signal ( 968s # OrgProjectUsefulInterface *object) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxy: 968s # * 968s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 968s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 968s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_useful_interface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeleton: 968s # * 968s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectUsefulInterfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_useful_interface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_useful_interface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_useful_interface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 968s # { 968s # _org_project_useful_interface_skeleton_handle_method_call, 968s # _org_project_useful_interface_skeleton_handle_get_property, 968s # _org_project_useful_interface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_useful_interface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_useful_interface_on_signal_simple_signal ( 968s # OrgProjectUsefulInterface *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_useful_interface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 968s # { 968s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 968s # } 968s # 968s # /** 968s # * org_project_useful_interface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectUsefulInterface * 968s # org_project_useful_interface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.OtherIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectOtherIface 968s # * @title: OrgProjectOtherIface 968s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.OtherIface ---- */ 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SimpleSignal", 968s # NULL, 968s # NULL 968s # }, 968s # "simple-signal" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 968s # { 968s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.OtherIface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-other-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_other_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_other_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_other_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_other_iface_signal_marshal_simple_signal ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VOID (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectOtherIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.OtherIface. 968s # */ 968s # 968s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectOtherIface::simple-signal: 968s # * @object: A #OrgProjectOtherIface. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 968s # g_signal_new ("simple-signal", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 968s # NULL, 968s # NULL, 968s # org_project_other_iface_signal_marshal_simple_signal, 968s # G_TYPE_NONE, 968s # 0); 968s # 968s # } 968s # 968s # /** 968s # * org_project_other_iface_emit_simple_signal: 968s # * @object: A #OrgProjectOtherIface. 968s # * 968s # * Emits the "SimpleSignal" D-Bus signal. 968s # */ 968s # void 968s # org_project_other_iface_emit_simple_signal ( 968s # OrgProjectOtherIface *object) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherIfaceProxy: 968s # * 968s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectOtherIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_other_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherIface * 968s # org_project_other_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherIface * 968s # org_project_other_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_other_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherIface * 968s # org_project_other_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherIface * 968s # org_project_other_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherIfaceSkeleton: 968s # * 968s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectOtherIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_other_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_other_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_other_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 968s # { 968s # _org_project_other_iface_skeleton_handle_method_call, 968s # _org_project_other_iface_skeleton_handle_get_property, 968s # _org_project_other_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_other_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_other_iface_on_signal_simple_signal ( 968s # OrgProjectOtherIface *object) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 968s # { 968s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 968s # } 968s # 968s # /** 968s # * org_project_other_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectOtherIface * 968s # org_project_other_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 968s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 968s # gdbus-codegen: /usr/bin/gdbus-codegen 968s # tmpdir: /tmp/tmphoaca2_y 968s # /tmp/tmphoaca2_y/tmp4j0pyo6n.xml: 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # 968s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphoaca2_y/tmp4j0pyo6n.xml', '--output', '-', '--body'] 968s # Return code: 0 968s # Output: 968s # /* 968s # * This file is generated by gdbus-codegen, do not modify it. 968s # * 968s # * The license of this code is the same as for the D-Bus interface description 968s # * it was derived from. Note that it links to GLib, so must comply with the 968s # * LGPL linking clauses. 968s # */ 968s # 968s # #ifdef HAVE_CONFIG_H 968s # # include "config.h" 968s # #endif 968s # 968s # #include 968s # #ifdef G_OS_UNIX 968s # # include 968s # #endif 968s # 968s # #ifdef G_ENABLE_DEBUG 968s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 968s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 968s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 968s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 968s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 968s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 968s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 968s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 968s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 968s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 968s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 968s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 968s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 968s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 968s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 968s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 968s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 968s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 968s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 968s # #else /* !G_ENABLE_DEBUG */ 968s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 968s # * Do not access GValues directly in your code. Instead, use the 968s # * g_value_get_*() functions 968s # */ 968s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 968s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 968s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 968s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 968s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 968s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 968s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 968s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 968s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 968s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 968s # #endif /* !G_ENABLE_DEBUG */ 968s # 968s # typedef struct 968s # { 968s # GDBusArgInfo parent_struct; 968s # gboolean use_gvariant; 968s # } _ExtendedGDBusArgInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusMethodInfo parent_struct; 968s # const gchar *signal_name; 968s # gboolean pass_fdlist; 968s # } _ExtendedGDBusMethodInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusSignalInfo parent_struct; 968s # const gchar *signal_name; 968s # } _ExtendedGDBusSignalInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusPropertyInfo parent_struct; 968s # const gchar *hyphen_name; 968s # guint use_gvariant : 1; 968s # guint emits_changed_signal : 1; 968s # } _ExtendedGDBusPropertyInfo; 968s # 968s # typedef struct 968s # { 968s # GDBusInterfaceInfo parent_struct; 968s # const gchar *hyphen_name; 968s # } _ExtendedGDBusInterfaceInfo; 968s # 968s # typedef struct 968s # { 968s # const _ExtendedGDBusPropertyInfo *info; 968s # guint prop_id; 968s # GValue orig_value; /* the value before the change */ 968s # } ChangedProperty; 968s # 968s # static void 968s # _changed_property_free (ChangedProperty *data) 968s # { 968s # g_value_unset (&data->orig_value); 968s # g_free (data); 968s # } 968s # 968s # static gboolean 968s # _g_strv_equal0 (gchar **a, gchar **b) 968s # { 968s # gboolean ret = FALSE; 968s # guint n; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # if (g_strv_length (a) != g_strv_length (b)) 968s # goto out; 968s # for (n = 0; a[n] != NULL; n++) 968s # if (g_strcmp0 (a[n], b[n]) != 0) 968s # goto out; 968s # ret = TRUE; 968s # out: 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _g_variant_equal0 (GVariant *a, GVariant *b) 968s # { 968s # gboolean ret = FALSE; 968s # if (a == NULL && b == NULL) 968s # { 968s # ret = TRUE; 968s # goto out; 968s # } 968s # if (a == NULL || b == NULL) 968s # goto out; 968s # ret = g_variant_equal (a, b); 968s # out: 968s # return ret; 968s # } 968s # 968s # G_GNUC_UNUSED static gboolean 968s # _g_value_equal (const GValue *a, const GValue *b) 968s # { 968s # gboolean ret = FALSE; 968s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 968s # switch (G_VALUE_TYPE (a)) 968s # { 968s # case G_TYPE_BOOLEAN: 968s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 968s # break; 968s # case G_TYPE_UCHAR: 968s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 968s # break; 968s # case G_TYPE_INT: 968s # ret = (g_value_get_int (a) == g_value_get_int (b)); 968s # break; 968s # case G_TYPE_UINT: 968s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 968s # break; 968s # case G_TYPE_INT64: 968s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 968s # break; 968s # case G_TYPE_UINT64: 968s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 968s # break; 968s # case G_TYPE_DOUBLE: 968s # { 968s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 968s # gdouble da = g_value_get_double (a); 968s # gdouble db = g_value_get_double (b); 968s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 968s # } 968s # break; 968s # case G_TYPE_STRING: 968s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 968s # break; 968s # case G_TYPE_VARIANT: 968s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 968s # break; 968s # default: 968s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 968s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 968s # else 968s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 968s # break; 968s # } 968s # return ret; 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.SignalingIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectSignalingIface 968s # * @title: OrgProjectSignalingIface 968s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.SignalingIface ---- */ 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SimpleSignal", 968s # NULL, 968s # NULL 968s # }, 968s # "simple-signal" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 968s # { 968s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.SignalingIface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-signaling-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_signaling_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_signaling_iface_signal_marshal_simple_signal ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VOID (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectSignalingIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.SignalingIface. 968s # */ 968s # 968s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectSignalingIface::simple-signal: 968s # * @object: A #OrgProjectSignalingIface. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 968s # g_signal_new ("simple-signal", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 968s # NULL, 968s # NULL, 968s # org_project_signaling_iface_signal_marshal_simple_signal, 968s # G_TYPE_NONE, 968s # 0); 968s # 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_emit_simple_signal: 968s # * @object: A #OrgProjectSignalingIface. 968s # * 968s # * Emits the "SimpleSignal" D-Bus signal. 968s # */ 968s # void 968s # org_project_signaling_iface_emit_simple_signal ( 968s # OrgProjectSignalingIface *object) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxy: 968s # * 968s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_signaling_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeleton: 968s # * 968s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectSignalingIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectSignalingIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_signaling_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_signaling_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_signaling_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 968s # { 968s # _org_project_signaling_iface_skeleton_handle_method_call, 968s # _org_project_signaling_iface_skeleton_handle_get_property, 968s # _org_project_signaling_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_signaling_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_signaling_iface_on_signal_simple_signal ( 968s # OrgProjectSignalingIface *object) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_signaling_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 968s # { 968s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 968s # } 968s # 968s # /** 968s # * org_project_signaling_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectSignalingIface * 968s # org_project_signaling_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ 968s # * Code for interface org.project.OtherSignalingIface 968s # * ------------------------------------------------------------------------ 968s # */ 968s # 968s # /** 968s # * SECTION:OrgProjectOtherSignalingIface 968s # * @title: OrgProjectOtherSignalingIface 968s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 968s # * 968s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 968s # */ 968s # 968s # enum 968s # { 968s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 968s # }; 968s # 968s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 968s # 968s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 968s # 968s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 968s # { 968s # { 968s # -1, 968s # (gchar *) "SimpleSignal", 968s # NULL, 968s # NULL 968s # }, 968s # "simple-signal" 968s # }; 968s # 968s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 968s # { 968s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 968s # NULL 968s # }; 968s # 968s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 968s # { 968s # { 968s # -1, 968s # (gchar *) "org.project.OtherSignalingIface", 968s # NULL, 968s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 968s # NULL, 968s # NULL 968s # }, 968s # "org-project-other-signaling-iface", 968s # }; 968s # 968s # 968s # /** 968s # * org_project_other_signaling_iface_interface_info: 968s # * 968s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 968s # * 968s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 968s # */ 968s # GDBusInterfaceInfo * 968s # org_project_other_signaling_iface_interface_info (void) 968s # { 968s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_override_properties: 968s # * @klass: The class structure for a #GObject derived class. 968s # * @property_id_begin: The property id to assign to the first overridden property. 968s # * 968s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 968s # * The properties are overridden in the order they are defined. 968s # * 968s # * Returns: The last property id. 968s # */ 968s # guint 968s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 968s # { 968s # return property_id_begin - 1; 968s # } 968s # 968s # 968s # inline static void 968s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 968s # GClosure *closure, 968s # GValue *return_value, 968s # unsigned int n_param_values, 968s # const GValue *param_values, 968s # void *invocation_hint, 968s # void *marshal_data) 968s # { 968s # g_cclosure_marshal_VOID__VOID (closure, 968s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 968s # } 968s # 968s # 968s # /** 968s # * OrgProjectOtherSignalingIface: 968s # * 968s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherSignalingIfaceIface: 968s # * @parent_iface: The parent interface. 968s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 968s # * 968s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 968s # */ 968s # 968s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 968s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 968s # 968s # static void 968s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 968s # { 968s # /* GObject signals for received D-Bus signals: */ 968s # /** 968s # * OrgProjectOtherSignalingIface::simple-signal: 968s # * @object: A #OrgProjectOtherSignalingIface. 968s # * 968s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 968s # * 968s # * 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. 968s # */ 968s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 968s # g_signal_new ("simple-signal", 968s # G_TYPE_FROM_INTERFACE (iface), 968s # G_SIGNAL_RUN_LAST, 968s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 968s # NULL, 968s # NULL, 968s # org_project_other_signaling_iface_signal_marshal_simple_signal, 968s # G_TYPE_NONE, 968s # 0); 968s # 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_emit_simple_signal: 968s # * @object: A #OrgProjectOtherSignalingIface. 968s # * 968s # * Emits the "SimpleSignal" D-Bus signal. 968s # */ 968s # void 968s # org_project_other_signaling_iface_emit_simple_signal ( 968s # OrgProjectOtherSignalingIface *object) 968s # { 968s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 968s # } 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherSignalingIfaceProxy: 968s # * 968s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherSignalingIfaceProxyClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 968s # */ 968s # 968s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 968s # { 968s # GData *qdata; 968s # }; 968s # 968s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 968s # { 968s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 968s # g_datalist_clear (&proxy->priv->qdata); 968s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 968s # guint prop_id G_GNUC_UNUSED, 968s # const GValue *value G_GNUC_UNUSED, 968s # GParamSpec *pspec G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 968s # const gchar *sender_name G_GNUC_UNUSED, 968s # const gchar *signal_name, 968s # GVariant *parameters) 968s # { 968s # _ExtendedGDBusSignalInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # gsize n; 968s # guint signal_id; 968s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 968s # if (info == NULL) 968s # return; 968s # num_params = g_variant_n_children (parameters); 968s # paramv = g_new0 (GValue, num_params + 1); 968s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[0], proxy); 968s # g_variant_iter_init (&iter, parameters); 968s # n = 1; 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 968s # g_signal_emitv (paramv, signal_id, 0, NULL); 968s # for (n = 0; n < num_params + 1; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 968s # GVariant *changed_properties, 968s # const gchar *const *invalidated_properties) 968s # { 968s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 968s # guint n; 968s # const gchar *key; 968s # GVariantIter *iter; 968s # _ExtendedGDBusPropertyInfo *info; 968s # g_variant_get (changed_properties, "a{sv}", &iter); 968s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 968s # g_datalist_remove_data (&proxy->priv->qdata, key); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # g_variant_iter_free (iter); 968s # for (n = 0; invalidated_properties[n] != NULL; n++) 968s # { 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 968s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 968s # if (info != NULL) 968s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 968s # } 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 968s # #else 968s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 968s # #endif 968s # 968s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusProxyClass *proxy_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 968s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 968s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 968s # 968s # proxy_class = G_DBUS_PROXY_CLASS (klass); 968s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 968s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_signaling_iface_proxy_new ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherSignalingIface * 968s # org_project_other_signaling_iface_proxy_new_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new_sync: 968s # * @connection: A #GDBusConnection. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherSignalingIface * 968s # org_project_other_signaling_iface_proxy_new_sync ( 968s # GDBusConnection *connection, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new_for_bus: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 968s # * @user_data: User data to pass to @callback. 968s # * 968s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 968s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 968s # * 968s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 968s # */ 968s # void 968s # org_project_other_signaling_iface_proxy_new_for_bus ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GAsyncReadyCallback callback, 968s # gpointer user_data) 968s # { 968s # 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); 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 968s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 968s # * @error: Return location for error or %NULL 968s # * 968s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherSignalingIface * 968s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 968s # GAsyncResult *res, 968s # GError **error) 968s # { 968s # GObject *ret; 968s # GObject *source_object; 968s # source_object = g_async_result_get_source_object (res); 968s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 968s # g_object_unref (source_object); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 968s # * @bus_type: A #GBusType. 968s # * @flags: Flags from the #GDBusProxyFlags enumeration. 968s # * @name: A bus name (well-known or unique). 968s # * @object_path: An object path. 968s # * @cancellable: (nullable): A #GCancellable or %NULL. 968s # * @error: Return location for error or %NULL 968s # * 968s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 968s # * 968s # * The calling thread is blocked until a reply is received. 968s # * 968s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 968s # */ 968s # OrgProjectOtherSignalingIface * 968s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 968s # GBusType bus_type, 968s # GDBusProxyFlags flags, 968s # const gchar *name, 968s # const gchar *object_path, 968s # GCancellable *cancellable, 968s # GError **error) 968s # { 968s # GInitable *ret; 968s # 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); 968s # if (ret != NULL) 968s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 968s # else 968s # return NULL; 968s # } 968s # 968s # 968s # /* ------------------------------------------------------------------------ */ 968s # 968s # /** 968s # * OrgProjectOtherSignalingIfaceSkeleton: 968s # * 968s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 968s # */ 968s # 968s # /** 968s # * OrgProjectOtherSignalingIfaceSkeletonClass: 968s # * @parent_class: The parent class. 968s # * 968s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 968s # */ 968s # 968s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 968s # { 968s # GValue *properties; 968s # GList *changed_properties; 968s # GSource *changed_properties_idle_source; 968s # GMainContext *context; 968s # GMutex lock; 968s # }; 968s # 968s # static void 968s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name, 968s # const gchar *method_name, 968s # GVariant *parameters, 968s # GDBusMethodInvocation *invocation, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 968s # _ExtendedGDBusMethodInfo *info; 968s # GVariantIter iter; 968s # GVariant *child; 968s # GValue *paramv; 968s # gsize num_params; 968s # guint num_extra; 968s # gsize n; 968s # guint signal_id; 968s # GValue return_value = G_VALUE_INIT; 968s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 968s # g_assert (info != NULL); 968s # num_params = g_variant_n_children (parameters); 968s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 968s # n = 0; 968s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 968s # g_value_set_object (¶mv[n++], skeleton); 968s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 968s # g_value_set_object (¶mv[n++], invocation); 968s # if (info->pass_fdlist) 968s # { 968s # #ifdef G_OS_UNIX 968s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 968s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 968s # #else 968s # g_assert_not_reached (); 968s # #endif 968s # } 968s # g_variant_iter_init (&iter, parameters); 968s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 968s # { 968s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 968s # if (arg_info->use_gvariant) 968s # { 968s # g_value_init (¶mv[n], G_TYPE_VARIANT); 968s # g_value_set_variant (¶mv[n], child); 968s # n++; 968s # } 968s # else 968s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 968s # g_variant_unref (child); 968s # } 968s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 968s # g_value_init (&return_value, G_TYPE_BOOLEAN); 968s # g_signal_emitv (paramv, signal_id, 0, &return_value); 968s # if (!g_value_get_boolean (&return_value)) 968s # 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); 968s # g_value_unset (&return_value); 968s # for (n = 0; n < num_params + num_extra; n++) 968s # g_value_unset (¶mv[n]); 968s # g_free (paramv); 968s # } 968s # 968s # static GVariant * 968s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # GVariant *ret; 968s # ret = NULL; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # g_value_init (&value, pspec->value_type); 968s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 968s # g_value_unset (&value); 968s # } 968s # return ret; 968s # } 968s # 968s # static gboolean 968s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 968s # GDBusConnection *connection G_GNUC_UNUSED, 968s # const gchar *sender G_GNUC_UNUSED, 968s # const gchar *object_path G_GNUC_UNUSED, 968s # const gchar *interface_name G_GNUC_UNUSED, 968s # const gchar *property_name, 968s # GVariant *variant, 968s # GError **error, 968s # gpointer user_data) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 968s # GValue value = G_VALUE_INIT; 968s # GParamSpec *pspec; 968s # _ExtendedGDBusPropertyInfo *info; 968s # gboolean ret; 968s # ret = FALSE; 968s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 968s # g_assert (info != NULL); 968s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 968s # if (pspec == NULL) 968s # { 968s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 968s # } 968s # else 968s # { 968s # if (info->use_gvariant) 968s # g_value_set_variant (&value, variant); 968s # else 968s # g_dbus_gvariant_to_gvalue (variant, &value); 968s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 968s # g_value_unset (&value); 968s # ret = TRUE; 968s # } 968s # return ret; 968s # } 968s # 968s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 968s # { 968s # _org_project_other_signaling_iface_skeleton_handle_method_call, 968s # _org_project_other_signaling_iface_skeleton_handle_get_property, 968s # _org_project_other_signaling_iface_skeleton_handle_set_property, 968s # {NULL} 968s # }; 968s # 968s # static GDBusInterfaceInfo * 968s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return org_project_other_signaling_iface_interface_info (); 968s # } 968s # 968s # static GDBusInterfaceVTable * 968s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 968s # { 968s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 968s # } 968s # 968s # static GVariant * 968s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 968s # 968s # GVariantBuilder builder; 968s # guint n; 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 968s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #else 968s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 968s # #endif 968s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 968s # goto out; 968s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 968s # { 968s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 968s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 968s # { 968s # GVariant *value; 968s # 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); 968s # if (value != NULL) 968s # { 968s # g_variant_take_ref (value); 968s # g_variant_builder_add (&builder, "{sv}", info->name, value); 968s # g_variant_unref (value); 968s # } 968s # } 968s # } 968s # out: 968s # return g_variant_builder_end (&builder); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 968s # { 968s # } 968s # 968s # static void 968s # _org_project_other_signaling_iface_on_signal_simple_signal ( 968s # OrgProjectOtherSignalingIface *object) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 968s # 968s # GList *connections, *l; 968s # GVariant *signal_variant; 968s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 968s # 968s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 968s # for (l = connections; l != NULL; l = l->next) 968s # { 968s # GDBusConnection *connection = l->data; 968s # g_dbus_connection_emit_signal (connection, 968s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 968s # signal_variant, NULL); 968s # } 968s # g_variant_unref (signal_variant); 968s # g_list_free_full (connections, g_object_unref); 968s # } 968s # 968s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 968s # 968s # #else 968s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 968s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 968s # 968s # #endif 968s # static void 968s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 968s # { 968s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 968s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 968s # if (skeleton->priv->changed_properties_idle_source != NULL) 968s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 968s # g_main_context_unref (skeleton->priv->context); 968s # g_mutex_clear (&skeleton->priv->lock); 968s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 968s # { 968s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 968s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 968s # #else 968s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 968s # #endif 968s # 968s # g_mutex_init (&skeleton->priv->lock); 968s # skeleton->priv->context = g_main_context_ref_thread_default (); 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 968s # { 968s # GObjectClass *gobject_class; 968s # GDBusInterfaceSkeletonClass *skeleton_class; 968s # 968s # gobject_class = G_OBJECT_CLASS (klass); 968s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 968s # 968s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 968s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 968s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 968s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 968s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 968s # 968s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 968s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 968s # #endif 968s # } 968s # 968s # static void 968s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 968s # { 968s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 968s # } 968s # 968s # /** 968s # * org_project_other_signaling_iface_skeleton_new: 968s # * 968s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 968s # * 968s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 968s # */ 968s # OrgProjectOtherSignalingIface * 968s # org_project_other_signaling_iface_skeleton_new (void) 968s # { 968s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 968s # } 968s # Error: 969s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpqlpvyoe6 969s # /tmp/tmpqlpvyoe6/tmpavl7qui_.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpavl7qui_.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_b", 969s # (gchar *) "b", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalB", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-b" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__BOOLEAN (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-b: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_b: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 969s # g_signal_new ("single-arg-signal-b", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_BOOLEAN); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_b: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_b: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalB" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_b ( 969s # OrgProjectSignalingIface *object, 969s # gboolean arg_arg_b) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 969s # OrgProjectSignalingIface *object, 969s # gboolean arg_arg_b) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 969s # arg_arg_b)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpwzzz1vbg.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpwzzz1vbg.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_y", 969s # (gchar *) "y", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalY", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-y" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__UCHAR (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-y: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_y: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 969s # g_signal_new ("single-arg-signal-y", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_UCHAR); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_y: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_y: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalY" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_y ( 969s # OrgProjectSignalingIface *object, 969s # guchar arg_arg_y) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 969s # OrgProjectSignalingIface *object, 969s # guchar arg_arg_y) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 969s # arg_arg_y)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmprycbcc2a.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmprycbcc2a.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_n", 969s # (gchar *) "n", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalN", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-n" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__INT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-n: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_n: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 969s # g_signal_new ("single-arg-signal-n", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_INT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_n: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_n: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalN" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_n ( 969s # OrgProjectSignalingIface *object, 969s # gint16 arg_arg_n) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 969s # OrgProjectSignalingIface *object, 969s # gint16 arg_arg_n) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 969s # arg_arg_n)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpbmjfsnj0.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpbmjfsnj0.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_q", 969s # (gchar *) "q", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalQ", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-q" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__UINT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-q: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_q: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 969s # g_signal_new ("single-arg-signal-q", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_UINT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_q: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_q: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalQ" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_q ( 969s # OrgProjectSignalingIface *object, 969s # guint16 arg_arg_q) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 969s # OrgProjectSignalingIface *object, 969s # guint16 arg_arg_q) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 969s # arg_arg_q)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp66t48vms.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp66t48vms.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_i", 969s # (gchar *) "i", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalI", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-i" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__INT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-i: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_i: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 969s # g_signal_new ("single-arg-signal-i", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_INT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_i: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_i: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalI" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_i ( 969s # OrgProjectSignalingIface *object, 969s # gint arg_arg_i) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 969s # OrgProjectSignalingIface *object, 969s # gint arg_arg_i) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 969s # arg_arg_i)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpapxtk5xa.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpapxtk5xa.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_u", 969s # (gchar *) "u", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalU", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-u" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__UINT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-u: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_u: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 969s # g_signal_new ("single-arg-signal-u", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_UINT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_u: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_u: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalU" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_u ( 969s # OrgProjectSignalingIface *object, 969s # guint arg_arg_u) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 969s # OrgProjectSignalingIface *object, 969s # guint arg_arg_u) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 969s # arg_arg_u)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp1tyu4e_s.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp1tyu4e_s.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # static void 969s # _g_dbus_codegen_marshal_VOID__INT64 ( 969s # GClosure *closure, 969s # GValue *return_value G_GNUC_UNUSED, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint G_GNUC_UNUSED, 969s # void *marshal_data) 969s # { 969s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 969s # (void *data1, 969s # gint64 arg_arg_x, 969s # void *data2); 969s # _GDbusCodegenMarshalVoid_Int64Func callback; 969s # GCClosure *cc = (GCClosure*) closure; 969s # void *data1, *data2; 969s # 969s # g_return_if_fail (n_param_values == 2); 969s # 969s # if (G_CCLOSURE_SWAP_DATA (closure)) 969s # { 969s # data1 = closure->data; 969s # data2 = g_value_peek_pointer (param_values + 0); 969s # } 969s # else 969s # { 969s # data1 = g_value_peek_pointer (param_values + 0); 969s # data2 = closure->data; 969s # } 969s # 969s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 969s # (marshal_data ? marshal_data : cc->callback); 969s # 969s # callback (data1, 969s # g_marshal_value_peek_int64 (param_values + 1), 969s # data2); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_x", 969s # (gchar *) "x", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalX", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-x" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-x: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_x: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 969s # g_signal_new ("single-arg-signal-x", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_INT64); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_x: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_x: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalX" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_x ( 969s # OrgProjectSignalingIface *object, 969s # gint64 arg_arg_x) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 969s # OrgProjectSignalingIface *object, 969s # gint64 arg_arg_x) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 969s # arg_arg_x)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp89ama_4h.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp89ama_4h.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # static void 969s # _g_dbus_codegen_marshal_VOID__UINT64 ( 969s # GClosure *closure, 969s # GValue *return_value G_GNUC_UNUSED, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint G_GNUC_UNUSED, 969s # void *marshal_data) 969s # { 969s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 969s # (void *data1, 969s # guint64 arg_arg_t, 969s # void *data2); 969s # _GDbusCodegenMarshalVoid_Uint64Func callback; 969s # GCClosure *cc = (GCClosure*) closure; 969s # void *data1, *data2; 969s # 969s # g_return_if_fail (n_param_values == 2); 969s # 969s # if (G_CCLOSURE_SWAP_DATA (closure)) 969s # { 969s # data1 = closure->data; 969s # data2 = g_value_peek_pointer (param_values + 0); 969s # } 969s # else 969s # { 969s # data1 = g_value_peek_pointer (param_values + 0); 969s # data2 = closure->data; 969s # } 969s # 969s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 969s # (marshal_data ? marshal_data : cc->callback); 969s # 969s # callback (data1, 969s # g_marshal_value_peek_uint64 (param_values + 1), 969s # data2); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_t", 969s # (gchar *) "t", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalT", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-t" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-t: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_t: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 969s # g_signal_new ("single-arg-signal-t", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_UINT64); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_t: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_t: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalT" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_t ( 969s # OrgProjectSignalingIface *object, 969s # guint64 arg_arg_t) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 969s # OrgProjectSignalingIface *object, 969s # guint64 arg_arg_t) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 969s # arg_arg_t)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmphd53lg0s.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmphd53lg0s.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_d", 969s # (gchar *) "d", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalD", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-d" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__DOUBLE (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-d: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_d: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 969s # g_signal_new ("single-arg-signal-d", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_DOUBLE); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_d: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_d: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalD" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_d ( 969s # OrgProjectSignalingIface *object, 969s # gdouble arg_arg_d) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 969s # OrgProjectSignalingIface *object, 969s # gdouble arg_arg_d) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 969s # arg_arg_d)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpv4ykivbc.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpv4ykivbc.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_s", 969s # (gchar *) "s", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalS", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-s" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__STRING (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-s: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_s: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 969s # g_signal_new ("single-arg-signal-s", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRING); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_s: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_s: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalS" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_s ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_s) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_s) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 969s # arg_arg_s)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp8k12byy8.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp8k12byy8.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_o", 969s # (gchar *) "o", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalO", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-o" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__STRING (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-o: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_o: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 969s # g_signal_new ("single-arg-signal-o", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRING); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_o: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_o: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalO" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_o ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_o) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_o) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 969s # arg_arg_o)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp_awtp6_w.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp_awtp6_w.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_g", 969s # (gchar *) "g", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalG", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-g" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__STRING (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-g: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_g: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 969s # g_signal_new ("single-arg-signal-g", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRING); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_g: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_g: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalG" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_g ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_g) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_g) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 969s # arg_arg_g)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp7b2xt_ui.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp7b2xt_ui.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_h", 969s # (gchar *) "h", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalH", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-h" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VARIANT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-h: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_h: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 969s # g_signal_new ("single-arg-signal-h", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_VARIANT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_h: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_h: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalH" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_h ( 969s # OrgProjectSignalingIface *object, 969s # GVariant *arg_arg_h) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 969s # OrgProjectSignalingIface *object, 969s # GVariant *arg_arg_h) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 969s # arg_arg_h)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpmtq4dh9u.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpmtq4dh9u.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_ay", 969s # (gchar *) "ay", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalAy", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-ay" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__STRING (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-ay: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_ay: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 969s # g_signal_new ("single-arg-signal-ay", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRING); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_ay: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_ay: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalAy" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_ay ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_ay) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *arg_arg_ay) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 969s # arg_arg_ay)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp5llcvn9c.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp5llcvn9c.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_as", 969s # (gchar *) "as", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalAs", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-as" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__BOXED (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-as: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_as: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 969s # g_signal_new ("single-arg-signal-as", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRV); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_as: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_as: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalAs" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_as ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_as) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_as) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 969s # arg_arg_as)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpr4cxthzs.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpr4cxthzs.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_ao", 969s # (gchar *) "ao", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalAo", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-ao" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__BOXED (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-ao: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_ao: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 969s # g_signal_new ("single-arg-signal-ao", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRV); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_ao: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_ao: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalAo" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_ao ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_ao) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_ao) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 969s # arg_arg_ao)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmp6ri3zhxg.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmp6ri3zhxg.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_aay", 969s # (gchar *) "aay", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalAay", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-aay" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__BOXED (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-aay: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_aay: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 969s # g_signal_new ("single-arg-signal-aay", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_STRV); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_aay: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_aay: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalAay" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_aay ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_aay) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 969s # OrgProjectSignalingIface *object, 969s # const gchar *const *arg_arg_aay) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 969s # arg_arg_aay)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s # 969s # /tmp/tmpqlpvyoe6/tmpbjsxqf0x.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqlpvyoe6/tmpbjsxqf0x.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 969s # { 969s # { 969s # -1, 969s # (gchar *) "arg_asv", 969s # (gchar *) "a{sv}", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SingleArgSignalAsv", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 969s # NULL 969s # }, 969s # "single-arg-signal-asv" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VARIANT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::single-arg-signal-asv: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_asv: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 969s # g_signal_new ("single-arg-signal-asv", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 969s # G_TYPE_NONE, 969s # 1, G_TYPE_VARIANT); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_single_arg_signal_asv: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_arg_asv: Argument to pass with the signal. 969s # * 969s # * Emits the "SingleArgSignalAsv" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_single_arg_signal_asv ( 969s # OrgProjectSignalingIface *object, 969s # GVariant *arg_arg_asv) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 969s # OrgProjectSignalingIface *object, 969s # GVariant *arg_arg_asv) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 969s # arg_arg_asv)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpmwmc2y7d 969s # /tmp/tmpmwmc2y7d/tmpeqqr4rwn.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmwmc2y7d/tmpeqqr4rwn.xml', '--output', '-', '--body'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifdef HAVE_CONFIG_H 969s # # include "config.h" 969s # #endif 969s # 969s # #include 969s # #ifdef G_OS_UNIX 969s # # include 969s # #endif 969s # 969s # #ifdef G_ENABLE_DEBUG 969s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 969s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 969s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 969s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 969s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 969s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 969s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 969s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 969s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 969s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 969s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 969s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 969s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 969s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 969s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 969s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 969s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 969s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 969s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 969s # #else /* !G_ENABLE_DEBUG */ 969s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 969s # * Do not access GValues directly in your code. Instead, use the 969s # * g_value_get_*() functions 969s # */ 969s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 969s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 969s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 969s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 969s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 969s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 969s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 969s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 969s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 969s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 969s # #endif /* !G_ENABLE_DEBUG */ 969s # 969s # typedef struct 969s # { 969s # GDBusArgInfo parent_struct; 969s # gboolean use_gvariant; 969s # } _ExtendedGDBusArgInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusMethodInfo parent_struct; 969s # const gchar *signal_name; 969s # gboolean pass_fdlist; 969s # } _ExtendedGDBusMethodInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusSignalInfo parent_struct; 969s # const gchar *signal_name; 969s # } _ExtendedGDBusSignalInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusPropertyInfo parent_struct; 969s # const gchar *hyphen_name; 969s # guint use_gvariant : 1; 969s # guint emits_changed_signal : 1; 969s # } _ExtendedGDBusPropertyInfo; 969s # 969s # typedef struct 969s # { 969s # GDBusInterfaceInfo parent_struct; 969s # const gchar *hyphen_name; 969s # } _ExtendedGDBusInterfaceInfo; 969s # 969s # typedef struct 969s # { 969s # const _ExtendedGDBusPropertyInfo *info; 969s # guint prop_id; 969s # GValue orig_value; /* the value before the change */ 969s # } ChangedProperty; 969s # 969s # static void 969s # _changed_property_free (ChangedProperty *data) 969s # { 969s # g_value_unset (&data->orig_value); 969s # g_free (data); 969s # } 969s # 969s # static gboolean 969s # _g_strv_equal0 (gchar **a, gchar **b) 969s # { 969s # gboolean ret = FALSE; 969s # guint n; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # if (g_strv_length (a) != g_strv_length (b)) 969s # goto out; 969s # for (n = 0; a[n] != NULL; n++) 969s # if (g_strcmp0 (a[n], b[n]) != 0) 969s # goto out; 969s # ret = TRUE; 969s # out: 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _g_variant_equal0 (GVariant *a, GVariant *b) 969s # { 969s # gboolean ret = FALSE; 969s # if (a == NULL && b == NULL) 969s # { 969s # ret = TRUE; 969s # goto out; 969s # } 969s # if (a == NULL || b == NULL) 969s # goto out; 969s # ret = g_variant_equal (a, b); 969s # out: 969s # return ret; 969s # } 969s # 969s # G_GNUC_UNUSED static gboolean 969s # _g_value_equal (const GValue *a, const GValue *b) 969s # { 969s # gboolean ret = FALSE; 969s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 969s # switch (G_VALUE_TYPE (a)) 969s # { 969s # case G_TYPE_BOOLEAN: 969s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 969s # break; 969s # case G_TYPE_UCHAR: 969s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 969s # break; 969s # case G_TYPE_INT: 969s # ret = (g_value_get_int (a) == g_value_get_int (b)); 969s # break; 969s # case G_TYPE_UINT: 969s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 969s # break; 969s # case G_TYPE_INT64: 969s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 969s # break; 969s # case G_TYPE_UINT64: 969s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 969s # break; 969s # case G_TYPE_DOUBLE: 969s # { 969s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 969s # gdouble da = g_value_get_double (a); 969s # gdouble db = g_value_get_double (b); 969s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 969s # } 969s # break; 969s # case G_TYPE_STRING: 969s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 969s # break; 969s # case G_TYPE_VARIANT: 969s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 969s # break; 969s # default: 969s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 969s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 969s # else 969s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 969s # break; 969s # } 969s # return ret; 969s # } 969s # 969s # static void 969s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 969s # GClosure *closure, 969s # GValue *return_value G_GNUC_UNUSED, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint G_GNUC_UNUSED, 969s # void *marshal_data) 969s # { 969s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 969s # (void *data1, 969s # gboolean arg_an_b, 969s # guchar arg_an_y, 969s # gint16 arg_an_n, 969s # guint16 arg_an_q, 969s # gint arg_an_i, 969s # guint arg_an_u, 969s # gint64 arg_an_x, 969s # guint64 arg_an_t, 969s # gdouble arg_an_d, 969s # const gchar *arg_an_s, 969s # const gchar *arg_an_o, 969s # const gchar *arg_an_g, 969s # GVariant *arg_an_h, 969s # const gchar *arg_an_ay, 969s # const gchar *const *arg_an_as, 969s # const gchar *const *arg_an_ao, 969s # const gchar *const *arg_an_aay, 969s # GVariant *arg_an_asv, 969s # void *data2); 969s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 969s # GCClosure *cc = (GCClosure*) closure; 969s # void *data1, *data2; 969s # 969s # g_return_if_fail (n_param_values == 19); 969s # 969s # if (G_CCLOSURE_SWAP_DATA (closure)) 969s # { 969s # data1 = closure->data; 969s # data2 = g_value_peek_pointer (param_values + 0); 969s # } 969s # else 969s # { 969s # data1 = g_value_peek_pointer (param_values + 0); 969s # data2 = closure->data; 969s # } 969s # 969s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 969s # (marshal_data ? marshal_data : cc->callback); 969s # 969s # callback (data1, 969s # g_marshal_value_peek_boolean (param_values + 1), 969s # g_marshal_value_peek_uchar (param_values + 2), 969s # g_marshal_value_peek_int (param_values + 3), 969s # g_marshal_value_peek_uint (param_values + 4), 969s # g_marshal_value_peek_int (param_values + 5), 969s # g_marshal_value_peek_uint (param_values + 6), 969s # g_marshal_value_peek_int64 (param_values + 7), 969s # g_marshal_value_peek_uint64 (param_values + 8), 969s # g_marshal_value_peek_double (param_values + 9), 969s # g_marshal_value_peek_string (param_values + 10), 969s # g_marshal_value_peek_string (param_values + 11), 969s # g_marshal_value_peek_string (param_values + 12), 969s # g_marshal_value_peek_variant (param_values + 13), 969s # g_marshal_value_peek_string (param_values + 14), 969s # g_marshal_value_peek_boxed (param_values + 15), 969s # g_marshal_value_peek_boxed (param_values + 16), 969s # g_marshal_value_peek_boxed (param_values + 17), 969s # g_marshal_value_peek_variant (param_values + 18), 969s # data2); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ 969s # * Code for interface org.project.SignalingIface 969s # * ------------------------------------------------------------------------ 969s # */ 969s # 969s # /** 969s # * SECTION:OrgProjectSignalingIface 969s # * @title: OrgProjectSignalingIface 969s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 969s # * 969s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 969s # */ 969s # 969s # enum 969s # { 969s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 969s # }; 969s # 969s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 969s # 969s # /* ---- Introspection data for org.project.SignalingIface ---- */ 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SimpleSignal", 969s # NULL, 969s # NULL 969s # }, 969s # "simple-signal" 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_b", 969s # (gchar *) "b", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_y", 969s # (gchar *) "y", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_n", 969s # (gchar *) "n", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_q", 969s # (gchar *) "q", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_i", 969s # (gchar *) "i", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_u", 969s # (gchar *) "u", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_x", 969s # (gchar *) "x", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_t", 969s # (gchar *) "t", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_d", 969s # (gchar *) "d", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_s", 969s # (gchar *) "s", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_o", 969s # (gchar *) "o", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_g", 969s # (gchar *) "g", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_h", 969s # (gchar *) "h", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_ay", 969s # (gchar *) "ay", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_as", 969s # (gchar *) "as", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_ao", 969s # (gchar *) "ao", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_aay", 969s # (gchar *) "aay", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 969s # { 969s # { 969s # -1, 969s # (gchar *) "an_asv", 969s # (gchar *) "a{sv}", 969s # NULL 969s # }, 969s # FALSE 969s # }; 969s # 969s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 969s # { 969s # { 969s # -1, 969s # (gchar *) "SignalWithManyArgs", 969s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 969s # NULL 969s # }, 969s # "signal-with-many-args" 969s # }; 969s # 969s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 969s # { 969s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 969s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 969s # NULL 969s # }; 969s # 969s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 969s # { 969s # { 969s # -1, 969s # (gchar *) "org.project.SignalingIface", 969s # NULL, 969s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 969s # NULL, 969s # NULL 969s # }, 969s # "org-project-signaling-iface", 969s # }; 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_interface_info: 969s # * 969s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 969s # * 969s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 969s # */ 969s # GDBusInterfaceInfo * 969s # org_project_signaling_iface_interface_info (void) 969s # { 969s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_override_properties: 969s # * @klass: The class structure for a #GObject derived class. 969s # * @property_id_begin: The property id to assign to the first overridden property. 969s # * 969s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 969s # * The properties are overridden in the order they are defined. 969s # * 969s # * Returns: The last property id. 969s # */ 969s # guint 969s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 969s # { 969s # return property_id_begin - 1; 969s # } 969s # 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_simple_signal ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # g_cclosure_marshal_VOID__VOID (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # inline static void 969s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 969s # GClosure *closure, 969s # GValue *return_value, 969s # unsigned int n_param_values, 969s # const GValue *param_values, 969s # void *invocation_hint, 969s # void *marshal_data) 969s # { 969s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 969s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 969s # } 969s # 969s # 969s # /** 969s # * OrgProjectSignalingIface: 969s # * 969s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceIface: 969s # * @parent_iface: The parent interface. 969s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 969s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 969s # * 969s # * Virtual table for the D-Bus interface org.project.SignalingIface. 969s # */ 969s # 969s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 969s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 969s # 969s # static void 969s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # /* GObject signals for received D-Bus signals: */ 969s # /** 969s # * OrgProjectSignalingIface::simple-signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 969s # g_signal_new ("simple-signal", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_simple_signal, 969s # G_TYPE_NONE, 969s # 0); 969s # 969s # /** 969s # * OrgProjectSignalingIface::signal-with-many-args: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_an_b: Argument. 969s # * @arg_an_y: Argument. 969s # * @arg_an_n: Argument. 969s # * @arg_an_q: Argument. 969s # * @arg_an_i: Argument. 969s # * @arg_an_u: Argument. 969s # * @arg_an_x: Argument. 969s # * @arg_an_t: Argument. 969s # * @arg_an_d: Argument. 969s # * @arg_an_s: Argument. 969s # * @arg_an_o: Argument. 969s # * @arg_an_g: Argument. 969s # * @arg_an_h: Argument. 969s # * @arg_an_ay: Argument. 969s # * @arg_an_as: Argument. 969s # * @arg_an_ao: Argument. 969s # * @arg_an_aay: Argument. 969s # * @arg_an_asv: Argument. 969s # * 969s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 969s # * 969s # * 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. 969s # */ 969s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 969s # g_signal_new ("signal-with-many-args", 969s # G_TYPE_FROM_INTERFACE (iface), 969s # G_SIGNAL_RUN_LAST, 969s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 969s # NULL, 969s # NULL, 969s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 969s # G_TYPE_NONE, 969s # 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); 969s # 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_simple_signal: 969s # * @object: A #OrgProjectSignalingIface. 969s # * 969s # * Emits the "SimpleSignal" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_emit_signal_with_many_args: 969s # * @object: A #OrgProjectSignalingIface. 969s # * @arg_an_b: Argument to pass with the signal. 969s # * @arg_an_y: Argument to pass with the signal. 969s # * @arg_an_n: Argument to pass with the signal. 969s # * @arg_an_q: Argument to pass with the signal. 969s # * @arg_an_i: Argument to pass with the signal. 969s # * @arg_an_u: Argument to pass with the signal. 969s # * @arg_an_x: Argument to pass with the signal. 969s # * @arg_an_t: Argument to pass with the signal. 969s # * @arg_an_d: Argument to pass with the signal. 969s # * @arg_an_s: Argument to pass with the signal. 969s # * @arg_an_o: Argument to pass with the signal. 969s # * @arg_an_g: Argument to pass with the signal. 969s # * @arg_an_h: Argument to pass with the signal. 969s # * @arg_an_ay: Argument to pass with the signal. 969s # * @arg_an_as: Argument to pass with the signal. 969s # * @arg_an_ao: Argument to pass with the signal. 969s # * @arg_an_aay: Argument to pass with the signal. 969s # * @arg_an_asv: Argument to pass with the signal. 969s # * 969s # * Emits the "SignalWithManyArgs" D-Bus signal. 969s # */ 969s # void 969s # org_project_signaling_iface_emit_signal_with_many_args ( 969s # OrgProjectSignalingIface *object, 969s # gboolean arg_an_b, 969s # guchar arg_an_y, 969s # gint16 arg_an_n, 969s # guint16 arg_an_q, 969s # gint arg_an_i, 969s # guint arg_an_u, 969s # gint64 arg_an_x, 969s # guint64 arg_an_t, 969s # gdouble arg_an_d, 969s # const gchar *arg_an_s, 969s # const gchar *arg_an_o, 969s # const gchar *arg_an_g, 969s # GVariant *arg_an_h, 969s # const gchar *arg_an_ay, 969s # const gchar *const *arg_an_as, 969s # const gchar *const *arg_an_ao, 969s # const gchar *const *arg_an_aay, 969s # GVariant *arg_an_asv) 969s # { 969s # 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); 969s # } 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxy: 969s # * 969s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceProxyClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceProxy. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceProxyPrivate 969s # { 969s # GData *qdata; 969s # }; 969s # 969s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_proxy_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 969s # g_datalist_clear (&proxy->priv->qdata); 969s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 969s # guint prop_id G_GNUC_UNUSED, 969s # const GValue *value G_GNUC_UNUSED, 969s # GParamSpec *pspec G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 969s # const gchar *sender_name G_GNUC_UNUSED, 969s # const gchar *signal_name, 969s # GVariant *parameters) 969s # { 969s # _ExtendedGDBusSignalInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # gsize n; 969s # guint signal_id; 969s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 969s # if (info == NULL) 969s # return; 969s # num_params = g_variant_n_children (parameters); 969s # paramv = g_new0 (GValue, num_params + 1); 969s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[0], proxy); 969s # g_variant_iter_init (&iter, parameters); 969s # n = 1; 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_signal_emitv (paramv, signal_id, 0, NULL); 969s # for (n = 0; n < num_params + 1; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 969s # GVariant *changed_properties, 969s # const gchar *const *invalidated_properties) 969s # { 969s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 969s # guint n; 969s # const gchar *key; 969s # GVariantIter *iter; 969s # _ExtendedGDBusPropertyInfo *info; 969s # g_variant_get (changed_properties, "a{sv}", &iter); 969s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 969s # g_datalist_remove_data (&proxy->priv->qdata, key); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # g_variant_iter_free (iter); 969s # for (n = 0; invalidated_properties[n] != NULL; n++) 969s # { 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 969s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 969s # if (info != NULL) 969s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 969s # } 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 969s # #else 969s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 969s # #endif 969s # 969s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusProxyClass *proxy_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 969s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 969s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 969s # 969s # proxy_class = G_DBUS_PROXY_CLASS (klass); 969s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 969s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_sync: 969s # * @connection: A #GDBusConnection. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_sync ( 969s # GDBusConnection *connection, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 969s # * @user_data: User data to pass to @callback. 969s # * 969s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 969s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 969s # */ 969s # void 969s # org_project_signaling_iface_proxy_new_for_bus ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GAsyncReadyCallback callback, 969s # gpointer user_data) 969s # { 969s # 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); 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_finish: 969s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 969s # * @error: Return location for error or %NULL 969s # * 969s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_finish ( 969s # GAsyncResult *res, 969s # GError **error) 969s # { 969s # GObject *ret; 969s # GObject *source_object; 969s # source_object = g_async_result_get_source_object (res); 969s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 969s # g_object_unref (source_object); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_proxy_new_for_bus_sync: 969s # * @bus_type: A #GBusType. 969s # * @flags: Flags from the #GDBusProxyFlags enumeration. 969s # * @name: A bus name (well-known or unique). 969s # * @object_path: An object path. 969s # * @cancellable: (nullable): A #GCancellable or %NULL. 969s # * @error: Return location for error or %NULL 969s # * 969s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 969s # * 969s # * The calling thread is blocked until a reply is received. 969s # * 969s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_proxy_new_for_bus_sync ( 969s # GBusType bus_type, 969s # GDBusProxyFlags flags, 969s # const gchar *name, 969s # const gchar *object_path, 969s # GCancellable *cancellable, 969s # GError **error) 969s # { 969s # GInitable *ret; 969s # 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); 969s # if (ret != NULL) 969s # return ORG_PROJECT_SIGNALING_IFACE (ret); 969s # else 969s # return NULL; 969s # } 969s # 969s # 969s # /* ------------------------------------------------------------------------ */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeleton: 969s # * 969s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 969s # */ 969s # 969s # /** 969s # * OrgProjectSignalingIfaceSkeletonClass: 969s # * @parent_class: The parent class. 969s # * 969s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 969s # */ 969s # 969s # struct _OrgProjectSignalingIfaceSkeletonPrivate 969s # { 969s # GValue *properties; 969s # GList *changed_properties; 969s # GSource *changed_properties_idle_source; 969s # GMainContext *context; 969s # GMutex lock; 969s # }; 969s # 969s # static void 969s # _org_project_signaling_iface_skeleton_handle_method_call ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name, 969s # const gchar *method_name, 969s # GVariant *parameters, 969s # GDBusMethodInvocation *invocation, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # _ExtendedGDBusMethodInfo *info; 969s # GVariantIter iter; 969s # GVariant *child; 969s # GValue *paramv; 969s # gsize num_params; 969s # guint num_extra; 969s # gsize n; 969s # guint signal_id; 969s # GValue return_value = G_VALUE_INIT; 969s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 969s # g_assert (info != NULL); 969s # num_params = g_variant_n_children (parameters); 969s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 969s # n = 0; 969s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_set_object (¶mv[n++], skeleton); 969s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 969s # g_value_set_object (¶mv[n++], invocation); 969s # if (info->pass_fdlist) 969s # { 969s # #ifdef G_OS_UNIX 969s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 969s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 969s # #else 969s # g_assert_not_reached (); 969s # #endif 969s # } 969s # g_variant_iter_init (&iter, parameters); 969s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 969s # { 969s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 969s # if (arg_info->use_gvariant) 969s # { 969s # g_value_init (¶mv[n], G_TYPE_VARIANT); 969s # g_value_set_variant (¶mv[n], child); 969s # n++; 969s # } 969s # else 969s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 969s # g_variant_unref (child); 969s # } 969s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 969s # g_value_init (&return_value, G_TYPE_BOOLEAN); 969s # g_signal_emitv (paramv, signal_id, 0, &return_value); 969s # if (!g_value_get_boolean (&return_value)) 969s # 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); 969s # g_value_unset (&return_value); 969s # for (n = 0; n < num_params + num_extra; n++) 969s # g_value_unset (¶mv[n]); 969s # g_free (paramv); 969s # } 969s # 969s # static GVariant * 969s # _org_project_signaling_iface_skeleton_handle_get_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # GVariant *ret; 969s # ret = NULL; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # g_value_init (&value, pspec->value_type); 969s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 969s # g_value_unset (&value); 969s # } 969s # return ret; 969s # } 969s # 969s # static gboolean 969s # _org_project_signaling_iface_skeleton_handle_set_property ( 969s # GDBusConnection *connection G_GNUC_UNUSED, 969s # const gchar *sender G_GNUC_UNUSED, 969s # const gchar *object_path G_GNUC_UNUSED, 969s # const gchar *interface_name G_GNUC_UNUSED, 969s # const gchar *property_name, 969s # GVariant *variant, 969s # GError **error, 969s # gpointer user_data) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 969s # GValue value = G_VALUE_INIT; 969s # GParamSpec *pspec; 969s # _ExtendedGDBusPropertyInfo *info; 969s # gboolean ret; 969s # ret = FALSE; 969s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 969s # g_assert (info != NULL); 969s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 969s # if (pspec == NULL) 969s # { 969s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 969s # } 969s # else 969s # { 969s # if (info->use_gvariant) 969s # g_value_set_variant (&value, variant); 969s # else 969s # g_dbus_gvariant_to_gvalue (variant, &value); 969s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 969s # g_value_unset (&value); 969s # ret = TRUE; 969s # } 969s # return ret; 969s # } 969s # 969s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 969s # { 969s # _org_project_signaling_iface_skeleton_handle_method_call, 969s # _org_project_signaling_iface_skeleton_handle_get_property, 969s # _org_project_signaling_iface_skeleton_handle_set_property, 969s # {NULL} 969s # }; 969s # 969s # static GDBusInterfaceInfo * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return org_project_signaling_iface_interface_info (); 969s # } 969s # 969s # static GDBusInterfaceVTable * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 969s # { 969s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 969s # } 969s # 969s # static GVariant * 969s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 969s # 969s # GVariantBuilder builder; 969s # guint n; 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 969s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #else 969s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 969s # #endif 969s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 969s # goto out; 969s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 969s # { 969s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 969s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 969s # { 969s # GVariant *value; 969s # 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); 969s # if (value != NULL) 969s # { 969s # g_variant_take_ref (value); 969s # g_variant_builder_add (&builder, "{sv}", info->name, value); 969s # g_variant_unref (value); 969s # } 969s # } 969s # } 969s # out: 969s # return g_variant_builder_end (&builder); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 969s # { 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_simple_signal ( 969s # OrgProjectSignalingIface *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void 969s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 969s # OrgProjectSignalingIface *object, 969s # gboolean arg_an_b, 969s # guchar arg_an_y, 969s # gint16 arg_an_n, 969s # guint16 arg_an_q, 969s # gint arg_an_i, 969s # guint arg_an_u, 969s # gint64 arg_an_x, 969s # guint64 arg_an_t, 969s # gdouble arg_an_d, 969s # const gchar *arg_an_s, 969s # const gchar *arg_an_o, 969s # const gchar *arg_an_g, 969s # GVariant *arg_an_h, 969s # const gchar *arg_an_ay, 969s # const gchar *const *arg_an_as, 969s # const gchar *const *arg_an_ao, 969s # const gchar *const *arg_an_aay, 969s # GVariant *arg_an_asv) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # 969s # GList *connections, *l; 969s # GVariant *signal_variant; 969s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 969s # 969s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 969s # arg_an_b, 969s # arg_an_y, 969s # arg_an_n, 969s # arg_an_q, 969s # arg_an_i, 969s # arg_an_u, 969s # arg_an_x, 969s # arg_an_t, 969s # arg_an_d, 969s # arg_an_s, 969s # arg_an_o, 969s # arg_an_g, 969s # arg_an_h, 969s # arg_an_ay, 969s # arg_an_as, 969s # arg_an_ao, 969s # arg_an_aay, 969s # arg_an_asv)); 969s # for (l = connections; l != NULL; l = l->next) 969s # { 969s # GDBusConnection *connection = l->data; 969s # g_dbus_connection_emit_signal (connection, 969s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 969s # signal_variant, NULL); 969s # } 969s # g_variant_unref (signal_variant); 969s # g_list_free_full (connections, g_object_unref); 969s # } 969s # 969s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #else 969s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 969s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 969s # 969s # #endif 969s # static void 969s # org_project_signaling_iface_skeleton_finalize (GObject *object) 969s # { 969s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 969s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 969s # if (skeleton->priv->changed_properties_idle_source != NULL) 969s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 969s # g_main_context_unref (skeleton->priv->context); 969s # g_mutex_clear (&skeleton->priv->lock); 969s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 969s # { 969s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 969s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 969s # #else 969s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 969s # #endif 969s # 969s # g_mutex_init (&skeleton->priv->lock); 969s # skeleton->priv->context = g_main_context_ref_thread_default (); 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 969s # { 969s # GObjectClass *gobject_class; 969s # GDBusInterfaceSkeletonClass *skeleton_class; 969s # 969s # gobject_class = G_OBJECT_CLASS (klass); 969s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 969s # 969s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 969s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 969s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 969s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 969s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 969s # 969s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 969s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 969s # #endif 969s # } 969s # 969s # static void 969s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 969s # { 969s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 969s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 969s # } 969s # 969s # /** 969s # * org_project_signaling_iface_skeleton_new: 969s # * 969s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 969s # * 969s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 969s # */ 969s # OrgProjectSignalingIface * 969s # org_project_signaling_iface_skeleton_new (void) 969s # { 969s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 969s # } 969s # Error: 969s ok 25 __main__.TestCodegen.test_generate_valid_docbook 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp3fxcwzap 969s # /tmp/tmp3fxcwzap/tmp3y3zy4k3.xml: 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3fxcwzap/tmp3y3zy4k3.xml', '--generate-docbook', 'test'] 969s # Return code: 0 969s # Output: 969s # 969s # Error: 969s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpit62fdsn 969s # /tmp/tmpit62fdsn/tmpxce889hn.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpit62fdsn/tmpxce889hn.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 969s # Return code: 1 969s # Output: 969s # 969s # Error: 969s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 969s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp0w8eokvr 969s # /tmp/tmp0w8eokvr/tmpeph04pmu.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0w8eokvr/tmpeph04pmu.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifndef __STDOUT__ 969s # #define __STDOUT__ 969s # 969s # #include 969s # 969s # G_BEGIN_DECLS 969s # 969s # 969s # G_END_DECLS 969s # 969s # #endif /* __STDOUT__ */ 969s # Error: 969s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp7e1gknha 969s # /tmp/tmp7e1gknha/tmpsht5em9o.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7e1gknha/tmpsht5em9o.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 969s # Return code: 1 969s # Output: 969s # 969s # Error: 969s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 969s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp3b65b7rj 969s # /tmp/tmp3b65b7rj/tmpcxs8olr2.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3b65b7rj/tmpcxs8olr2.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifndef __STDOUT__ 969s # #define __STDOUT__ 969s # 969s # #include 969s # 969s # G_BEGIN_DECLS 969s # 969s # 969s # G_END_DECLS 969s # 969s # #endif /* __STDOUT__ */ 969s # Error: 969s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpan2zydyy 969s # /tmp/tmpan2zydyy/tmpk4snxkav.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpan2zydyy/tmpk4snxkav.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifndef __STDOUT__ 969s # #define __STDOUT__ 969s # 969s # #include 969s # 969s # G_BEGIN_DECLS 969s # 969s # 969s # G_END_DECLS 969s # 969s # #endif /* __STDOUT__ */ 969s # Error: 969s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpg5sqd4up 969s # /tmp/tmpg5sqd4up/tmpqc_yximd.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpg5sqd4up/tmpqc_yximd.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 969s # Return code: 1 969s # Output: 969s # 969s # Error: 969s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 969s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpzsx2_p_a 969s # /tmp/tmpzsx2_p_a/tmpg5ykmp5n.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzsx2_p_a/tmpg5ykmp5n.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifndef __STDOUT__ 969s # #define __STDOUT__ 969s # 969s # #include 969s # 969s # G_BEGIN_DECLS 969s # 969s # 969s # G_END_DECLS 969s # 969s # #endif /* __STDOUT__ */ 969s # Error: 969s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmpmmk9wxwa 969s # /tmp/tmpmmk9wxwa/tmpa_mltgz6.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmmk9wxwa/tmpa_mltgz6.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 969s # Return code: 1 969s # Output: 969s # 969s # Error: 969s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 969s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp2smhi4tz 969s # /tmp/tmp2smhi4tz/tmphijddq61.xml: 969s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2smhi4tz/tmphijddq61.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 969s # Return code: 0 969s # Output: 969s # /* 969s # * This file is generated by gdbus-codegen, do not modify it. 969s # * 969s # * The license of this code is the same as for the D-Bus interface description 969s # * it was derived from. Note that it links to GLib, so must comply with the 969s # * LGPL linking clauses. 969s # */ 969s # 969s # #ifndef __STDOUT__ 969s # #define __STDOUT__ 969s # 969s # #include 969s # 969s # G_BEGIN_DECLS 969s # 969s # 969s # G_END_DECLS 969s # 969s # #endif /* __STDOUT__ */ 969s # Error: 969s ok 35 __main__.TestCodegen.test_help 969s # gdbus-codegen: /usr/bin/gdbus-codegen 969s # tmpdir: /tmp/tmp654kb_ls 969s # Running: ['/usr/bin/gdbus-codegen', '--help'] 969s # Return code: 0 969s # Output: 969s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 969s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 969s # [--c-generate-autocleanup {none,objects,all}] 969s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 969s # [--generate-rst OUTFILES] [--pragma-once] 969s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 969s # [--glib-min-required VERSION] 969s # [--glib-max-allowed VERSION] 969s # [--symbol-decorator SYMBOL_DECORATOR] 969s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 969s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 969s # [--generate-c-code OUTFILES | --header | --body | 969s # --interface-info-header | --interface-info-body] 969s # [--output FILE | --output-directory OUTDIR] 969s # FILE [FILE ...] 969s # 969s # D-Bus code and documentation generator 969s # 969s # positional arguments: 969s # FILE D-Bus introspection XML file 969s # 969s # options: 969s # -h, --help show this help message and exit 969s # --interface-prefix PREFIX 969s # String to strip from D-Bus interface names for code 969s # and docs 969s # --c-namespace NAMESPACE 969s # The namespace to use for generated C code 969s # --c-generate-object-manager 969s # Generate a GDBusObjectManagerClient subclass when 969s # generating C code 969s # --c-generate-autocleanup {none,objects,all} 969s # Generate autocleanup support 969s # --generate-docbook OUTFILES 969s # Generate Docbook in OUTFILES-org.Project.IFace.xml 969s # --generate-md OUTFILES 969s # Generate Markdown in OUTFILES-org.Project.IFace.md 969s # --generate-rst OUTFILES 969s # Generate reStructuredText in OUTFILES- 969s # org.Project.IFace.rst 969s # --pragma-once Use "pragma once" as the inclusion guard 969s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 969s # Add annotation (may be used several times) 969s # --glib-min-required VERSION 969s # Minimum version of GLib to be supported by the 969s # outputted code (default: 2.30) 969s # --glib-max-allowed VERSION 969s # Maximum version of GLib to be used by the outputted 969s # code (default: current GLib version) 969s # --symbol-decorator SYMBOL_DECORATOR 969s # Macro used to decorate a symbol in the outputted 969s # header, possibly to export symbols 969s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 969s # Additional header required for decorator specified by 969s # --symbol-decorator 969s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 969s # Additional define required for decorator specified by 969s # --symbol-decorator 969s # --generate-c-code OUTFILES 969s # Generate C code in OUTFILES.[ch] 969s # --header Generate C headers 969s # --body Generate C code 969s # --interface-info-header 969s # Generate GDBusInterfaceInfo C header 969s # --interface-info-body 969s # Generate GDBusInterfaceInfo C code 969s # --output FILE Write output into the specified file 969s # --output-directory OUTDIR 969s # Location to output generated files 969s # Error: 970s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 970s # gdbus-codegen: /usr/bin/gdbus-codegen 970s # tmpdir: /tmp/tmpcbs4iaki 970s # /tmp/tmpcbs4iaki/tmpqlackebe.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcbs4iaki/tmpqlackebe.xml', '--generate-rst', 'test'] 970s # Return code: 0 970s # Output: 970s # 970s # Error: 970s # 970s # /tmp/tmpcbs4iaki/tmp44ia2ebh.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcbs4iaki/tmp44ia2ebh.xml', '--generate-md', 'test'] 970s # Return code: 0 970s # Output: 970s # 970s # Error: 970s # 970s # /tmp/tmpcbs4iaki/tmpmnedlnji.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcbs4iaki/tmpmnedlnji.xml', '--generate-docbook', 'test'] 970s # Return code: 0 970s # Output: 970s # 970s # Error: 970s ok 37 __main__.TestCodegen.test_no_args 970s # gdbus-codegen: /usr/bin/gdbus-codegen 970s # tmpdir: /tmp/tmpzt9g0gew 970s # Running: ['/usr/bin/gdbus-codegen'] 970s # Return code: 2 970s # Output: 970s # 970s # Error: 970s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 970s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 970s # [--c-generate-autocleanup {none,objects,all}] 970s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 970s # [--generate-rst OUTFILES] [--pragma-once] 970s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 970s # [--glib-min-required VERSION] 970s # [--glib-max-allowed VERSION] 970s # [--symbol-decorator SYMBOL_DECORATOR] 970s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 970s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 970s # [--generate-c-code OUTFILES | --header | --body | 970s # --interface-info-header | --interface-info-body] 970s # [--output FILE | --output-directory OUTDIR] 970s # FILE [FILE ...] 970s # gdbus-codegen: error: the following arguments are required: FILE 970s ok 38 __main__.TestCodegen.test_reproducible 970s # gdbus-codegen: /usr/bin/gdbus-codegen 970s # tmpdir: /tmp/tmpqc1l03oo 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqc1l03oo/tmpzo85bpgi1.xml', '/tmp/tmpqc1l03oo/tmpovt1nfuo2.xml', '--output', '-', '--header'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifndef __STDOUT__ 970s # #define __STDOUT__ 970s # 970s # #include 970s # 970s # G_BEGIN_DECLS 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for org.project.Bar.Frobnicator */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 970s # 970s # struct _OrgProjectBarFrobnicator; 970s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 970s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 970s # 970s # struct _OrgProjectBarFrobnicatorIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # gboolean (*handle_random_method) ( 970s # OrgProjectBarFrobnicator *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # }; 970s # 970s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 970s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void org_project_bar_frobnicator_complete_random_method ( 970s # OrgProjectBarFrobnicator *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void org_project_bar_frobnicator_call_random_method ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 970s # 970s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 970s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 970s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 970s # 970s # struct _OrgProjectBarFrobnicatorProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # OrgProjectBarFrobnicatorProxyPrivate *priv; 970s # }; 970s # 970s # struct _OrgProjectBarFrobnicatorProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 970s # #endif 970s # 970s # void org_project_bar_frobnicator_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void org_project_bar_frobnicator_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 970s # 970s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 970s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 970s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 970s # 970s # struct _OrgProjectBarFrobnicatorSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _OrgProjectBarFrobnicatorSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 970s # #endif 970s # 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for com.acme.Coyote */ 970s # 970s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 970s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 970s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 970s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 970s # 970s # struct _ComAcmeCoyote; 970s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 970s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 970s # 970s # struct _ComAcmeCoyoteIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # 970s # 970s # gboolean (*handle_attack) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # gboolean (*handle_run) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # gboolean (*handle_sleep) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # const gchar * (*get_mood) (ComAcmeCoyote *object); 970s # 970s # void (*surprised) ( 970s # ComAcmeCoyote *object); 970s # 970s # }; 970s # 970s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 970s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void com_acme_coyote_complete_run ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # void com_acme_coyote_complete_sleep ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # void com_acme_coyote_complete_attack ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus signal emissions functions: */ 970s # void com_acme_coyote_emit_surprised ( 970s # ComAcmeCoyote *object); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void com_acme_coyote_call_run ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_run_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_run_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_call_sleep ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_sleep_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_sleep_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_call_attack ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_attack_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_attack_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* D-Bus property accessors: */ 970s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 970s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 970s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 970s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 970s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 970s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 970s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 970s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 970s # 970s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 970s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 970s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 970s # 970s # struct _ComAcmeCoyoteProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # ComAcmeCoyoteProxyPrivate *priv; 970s # }; 970s # 970s # struct _ComAcmeCoyoteProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 970s # #endif 970s # 970s # void com_acme_coyote_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 970s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 970s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 970s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 970s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 970s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 970s # 970s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 970s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 970s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 970s # 970s # struct _ComAcmeCoyoteSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # ComAcmeCoyoteSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _ComAcmeCoyoteSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 970s # #endif 970s # 970s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 970s # 970s # 970s # G_END_DECLS 970s # 970s # #endif /* __STDOUT__ */ 970s # Error: 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqc1l03oo/tmpovt1nfuo2.xml', '/tmp/tmpqc1l03oo/tmpzo85bpgi1.xml', '--output', '-', '--header'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifndef __STDOUT__ 970s # #define __STDOUT__ 970s # 970s # #include 970s # 970s # G_BEGIN_DECLS 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for org.project.Bar.Frobnicator */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 970s # 970s # struct _OrgProjectBarFrobnicator; 970s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 970s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 970s # 970s # struct _OrgProjectBarFrobnicatorIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # gboolean (*handle_random_method) ( 970s # OrgProjectBarFrobnicator *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # }; 970s # 970s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 970s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void org_project_bar_frobnicator_complete_random_method ( 970s # OrgProjectBarFrobnicator *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void org_project_bar_frobnicator_call_random_method ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 970s # 970s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 970s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 970s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 970s # 970s # struct _OrgProjectBarFrobnicatorProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # OrgProjectBarFrobnicatorProxyPrivate *priv; 970s # }; 970s # 970s # struct _OrgProjectBarFrobnicatorProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 970s # #endif 970s # 970s # void org_project_bar_frobnicator_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void org_project_bar_frobnicator_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 970s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 970s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 970s # 970s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 970s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 970s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 970s # 970s # struct _OrgProjectBarFrobnicatorSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _OrgProjectBarFrobnicatorSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 970s # #endif 970s # 970s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for com.acme.Coyote */ 970s # 970s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 970s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 970s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 970s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 970s # 970s # struct _ComAcmeCoyote; 970s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 970s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 970s # 970s # struct _ComAcmeCoyoteIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # 970s # 970s # gboolean (*handle_attack) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # gboolean (*handle_run) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # gboolean (*handle_sleep) ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # const gchar * (*get_mood) (ComAcmeCoyote *object); 970s # 970s # void (*surprised) ( 970s # ComAcmeCoyote *object); 970s # 970s # }; 970s # 970s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 970s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void com_acme_coyote_complete_run ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # void com_acme_coyote_complete_sleep ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # void com_acme_coyote_complete_attack ( 970s # ComAcmeCoyote *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus signal emissions functions: */ 970s # void com_acme_coyote_emit_surprised ( 970s # ComAcmeCoyote *object); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void com_acme_coyote_call_run ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_run_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_run_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_call_sleep ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_sleep_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_sleep_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_call_attack ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean com_acme_coyote_call_attack_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean com_acme_coyote_call_attack_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* D-Bus property accessors: */ 970s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 970s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 970s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 970s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 970s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 970s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 970s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 970s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 970s # 970s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 970s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 970s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 970s # 970s # struct _ComAcmeCoyoteProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # ComAcmeCoyoteProxyPrivate *priv; 970s # }; 970s # 970s # struct _ComAcmeCoyoteProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 970s # #endif 970s # 970s # void com_acme_coyote_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void com_acme_coyote_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 970s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 970s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 970s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 970s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 970s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 970s # 970s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 970s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 970s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 970s # 970s # struct _ComAcmeCoyoteSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # ComAcmeCoyoteSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _ComAcmeCoyoteSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 970s # #endif 970s # 970s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 970s # 970s # 970s # G_END_DECLS 970s # 970s # #endif /* __STDOUT__ */ 970s # Error: 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqc1l03oo/tmpzo85bpgi1.xml', '/tmp/tmpqc1l03oo/tmpovt1nfuo2.xml', '--output', '-', '--body'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifdef HAVE_CONFIG_H 970s # # include "config.h" 970s # #endif 970s # 970s # #include 970s # #ifdef G_OS_UNIX 970s # # include 970s # #endif 970s # 970s # #ifdef G_ENABLE_DEBUG 970s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 970s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 970s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 970s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 970s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 970s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 970s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 970s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 970s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 970s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 970s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 970s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 970s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 970s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 970s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 970s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 970s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 970s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 970s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 970s # #else /* !G_ENABLE_DEBUG */ 970s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 970s # * Do not access GValues directly in your code. Instead, use the 970s # * g_value_get_*() functions 970s # */ 970s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 970s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 970s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 970s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 970s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 970s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 970s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 970s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 970s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 970s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 970s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 970s # #endif /* !G_ENABLE_DEBUG */ 970s # 970s # typedef struct 970s # { 970s # GDBusArgInfo parent_struct; 970s # gboolean use_gvariant; 970s # } _ExtendedGDBusArgInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusMethodInfo parent_struct; 970s # const gchar *signal_name; 970s # gboolean pass_fdlist; 970s # } _ExtendedGDBusMethodInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusSignalInfo parent_struct; 970s # const gchar *signal_name; 970s # } _ExtendedGDBusSignalInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusPropertyInfo parent_struct; 970s # const gchar *hyphen_name; 970s # guint use_gvariant : 1; 970s # guint emits_changed_signal : 1; 970s # } _ExtendedGDBusPropertyInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusInterfaceInfo parent_struct; 970s # const gchar *hyphen_name; 970s # } _ExtendedGDBusInterfaceInfo; 970s # 970s # typedef struct 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # guint prop_id; 970s # GValue orig_value; /* the value before the change */ 970s # } ChangedProperty; 970s # 970s # static void 970s # _changed_property_free (ChangedProperty *data) 970s # { 970s # g_value_unset (&data->orig_value); 970s # g_free (data); 970s # } 970s # 970s # static gboolean 970s # _g_strv_equal0 (gchar **a, gchar **b) 970s # { 970s # gboolean ret = FALSE; 970s # guint n; 970s # if (a == NULL && b == NULL) 970s # { 970s # ret = TRUE; 970s # goto out; 970s # } 970s # if (a == NULL || b == NULL) 970s # goto out; 970s # if (g_strv_length (a) != g_strv_length (b)) 970s # goto out; 970s # for (n = 0; a[n] != NULL; n++) 970s # if (g_strcmp0 (a[n], b[n]) != 0) 970s # goto out; 970s # ret = TRUE; 970s # out: 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _g_variant_equal0 (GVariant *a, GVariant *b) 970s # { 970s # gboolean ret = FALSE; 970s # if (a == NULL && b == NULL) 970s # { 970s # ret = TRUE; 970s # goto out; 970s # } 970s # if (a == NULL || b == NULL) 970s # goto out; 970s # ret = g_variant_equal (a, b); 970s # out: 970s # return ret; 970s # } 970s # 970s # G_GNUC_UNUSED static gboolean 970s # _g_value_equal (const GValue *a, const GValue *b) 970s # { 970s # gboolean ret = FALSE; 970s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 970s # switch (G_VALUE_TYPE (a)) 970s # { 970s # case G_TYPE_BOOLEAN: 970s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 970s # break; 970s # case G_TYPE_UCHAR: 970s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 970s # break; 970s # case G_TYPE_INT: 970s # ret = (g_value_get_int (a) == g_value_get_int (b)); 970s # break; 970s # case G_TYPE_UINT: 970s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 970s # break; 970s # case G_TYPE_INT64: 970s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 970s # break; 970s # case G_TYPE_UINT64: 970s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 970s # break; 970s # case G_TYPE_DOUBLE: 970s # { 970s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 970s # gdouble da = g_value_get_double (a); 970s # gdouble db = g_value_get_double (b); 970s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 970s # } 970s # break; 970s # case G_TYPE_STRING: 970s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 970s # break; 970s # case G_TYPE_VARIANT: 970s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 970s # break; 970s # default: 970s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 970s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 970s # else 970s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 970s # break; 970s # } 970s # return ret; 970s # } 970s # 970s # static void 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint G_GNUC_UNUSED, 970s # void *marshal_data) 970s # { 970s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 970s # (void *data1, 970s # GDBusMethodInvocation *arg_method_invocation, 970s # void *data2); 970s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 970s # GCClosure *cc = (GCClosure*) closure; 970s # void *data1, *data2; 970s # gboolean v_return; 970s # 970s # g_return_if_fail (return_value != NULL); 970s # g_return_if_fail (n_param_values == 2); 970s # 970s # if (G_CCLOSURE_SWAP_DATA (closure)) 970s # { 970s # data1 = closure->data; 970s # data2 = g_value_peek_pointer (param_values + 0); 970s # } 970s # else 970s # { 970s # data1 = g_value_peek_pointer (param_values + 0); 970s # data2 = closure->data; 970s # } 970s # 970s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 970s # (marshal_data ? marshal_data : cc->callback); 970s # 970s # v_return = 970s # callback (data1, 970s # g_marshal_value_peek_object (param_values + 1), 970s # data2); 970s # 970s # g_value_set_boolean (return_value, v_return); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ 970s # * Code for interface org.project.Bar.Frobnicator 970s # * ------------------------------------------------------------------------ 970s # */ 970s # 970s # /** 970s # * SECTION:OrgProjectBarFrobnicator 970s # * @title: OrgProjectBarFrobnicator 970s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 970s # * 970s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 970s # */ 970s # 970s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 970s # 970s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 970s # { 970s # { 970s # -1, 970s # (gchar *) "RandomMethod", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-random-method", 970s # FALSE 970s # }; 970s # 970s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 970s # { 970s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 970s # { 970s # { 970s # -1, 970s # (gchar *) "org.project.Bar.Frobnicator", 970s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "org-project-bar-frobnicator", 970s # }; 970s # 970s # 970s # /** 970s # * org_project_bar_frobnicator_interface_info: 970s # * 970s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 970s # * 970s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 970s # */ 970s # GDBusInterfaceInfo * 970s # org_project_bar_frobnicator_interface_info (void) 970s # { 970s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_override_properties: 970s # * @klass: The class structure for a #GObject derived class. 970s # * @property_id_begin: The property id to assign to the first overridden property. 970s # * 970s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 970s # * The properties are overridden in the order they are defined. 970s # * 970s # * Returns: The last property id. 970s # */ 970s # guint 970s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 970s # { 970s # return property_id_begin - 1; 970s # } 970s # 970s # 970s # inline static void 970s # org_project_bar_frobnicator_method_marshal_random_method ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # 970s # /** 970s # * OrgProjectBarFrobnicator: 970s # * 970s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorIface: 970s # * @parent_iface: The parent interface. 970s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 970s # * 970s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 970s # */ 970s # 970s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 970s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 970s # 970s # static void 970s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 970s # { 970s # /* GObject signals for incoming D-Bus method calls: */ 970s # /** 970s # * OrgProjectBarFrobnicator::handle-random-method: 970s # * @object: A #OrgProjectBarFrobnicator. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-random-method", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # org_project_bar_frobnicator_method_marshal_random_method, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # org_project_bar_frobnicator_call_random_method ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "RandomMethod", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method_finish: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # org_project_bar_frobnicator_call_random_method_finish ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method_sync: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # org_project_bar_frobnicator_call_random_method_sync ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "RandomMethod", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_complete_random_method: 970s # * @object: A #OrgProjectBarFrobnicator. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # org_project_bar_frobnicator_complete_random_method ( 970s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorProxy: 970s # * 970s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorProxyClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #OrgProjectBarFrobnicatorProxy. 970s # */ 970s # 970s # struct _OrgProjectBarFrobnicatorProxyPrivate 970s # { 970s # GData *qdata; 970s # }; 970s # 970s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 970s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 970s # 970s # #endif 970s # static void 970s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 970s # { 970s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 970s # g_datalist_clear (&proxy->priv->qdata); 970s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 970s # guint prop_id G_GNUC_UNUSED, 970s # GValue *value G_GNUC_UNUSED, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 970s # guint prop_id G_GNUC_UNUSED, 970s # const GValue *value G_GNUC_UNUSED, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 970s # const gchar *sender_name G_GNUC_UNUSED, 970s # const gchar *signal_name, 970s # GVariant *parameters) 970s # { 970s # _ExtendedGDBusSignalInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # gsize n; 970s # guint signal_id; 970s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 970s # if (info == NULL) 970s # return; 970s # num_params = g_variant_n_children (parameters); 970s # paramv = g_new0 (GValue, num_params + 1); 970s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_set_object (¶mv[0], proxy); 970s # g_variant_iter_init (&iter, parameters); 970s # n = 1; 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_signal_emitv (paramv, signal_id, 0, NULL); 970s # for (n = 0; n < num_params + 1; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 970s # GVariant *changed_properties, 970s # const gchar *const *invalidated_properties) 970s # { 970s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 970s # guint n; 970s # const gchar *key; 970s # GVariantIter *iter; 970s # _ExtendedGDBusPropertyInfo *info; 970s # g_variant_get (changed_properties, "a{sv}", &iter); 970s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 970s # g_datalist_remove_data (&proxy->priv->qdata, key); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # g_variant_iter_free (iter); 970s # for (n = 0; invalidated_properties[n] != NULL; n++) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 970s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 970s # #else 970s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 970s # #endif 970s # 970s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusProxyClass *proxy_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 970s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 970s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 970s # 970s # proxy_class = G_DBUS_PROXY_CLASS (klass); 970s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 970s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # org_project_bar_frobnicator_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_sync: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # org_project_bar_frobnicator_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorSkeleton: 970s # * 970s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorSkeletonClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 970s # */ 970s # 970s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 970s # { 970s # GValue *properties; 970s # GList *changed_properties; 970s # GSource *changed_properties_idle_source; 970s # GMainContext *context; 970s # GMutex lock; 970s # }; 970s # 970s # static void 970s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name, 970s # const gchar *method_name, 970s # GVariant *parameters, 970s # GDBusMethodInvocation *invocation, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # _ExtendedGDBusMethodInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # guint num_extra; 970s # gsize n; 970s # guint signal_id; 970s # GValue return_value = G_VALUE_INIT; 970s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 970s # g_assert (info != NULL); 970s # num_params = g_variant_n_children (parameters); 970s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 970s # n = 0; 970s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_set_object (¶mv[n++], skeleton); 970s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 970s # g_value_set_object (¶mv[n++], invocation); 970s # if (info->pass_fdlist) 970s # { 970s # #ifdef G_OS_UNIX 970s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 970s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 970s # #else 970s # g_assert_not_reached (); 970s # #endif 970s # } 970s # g_variant_iter_init (&iter, parameters); 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_init (&return_value, G_TYPE_BOOLEAN); 970s # g_signal_emitv (paramv, signal_id, 0, &return_value); 970s # if (!g_value_get_boolean (&return_value)) 970s # 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); 970s # g_value_unset (&return_value); 970s # for (n = 0; n < num_params + num_extra; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static GVariant * 970s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # GVariant *ret; 970s # ret = NULL; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # g_value_init (&value, pspec->value_type); 970s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_value_unset (&value); 970s # } 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GVariant *variant, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # gboolean ret; 970s # ret = FALSE; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # if (info->use_gvariant) 970s # g_value_set_variant (&value, variant); 970s # else 970s # g_dbus_gvariant_to_gvalue (variant, &value); 970s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # g_value_unset (&value); 970s # ret = TRUE; 970s # } 970s # return ret; 970s # } 970s # 970s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 970s # { 970s # _org_project_bar_frobnicator_skeleton_handle_method_call, 970s # _org_project_bar_frobnicator_skeleton_handle_get_property, 970s # _org_project_bar_frobnicator_skeleton_handle_set_property, 970s # {NULL} 970s # }; 970s # 970s # static GDBusInterfaceInfo * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return org_project_bar_frobnicator_interface_info (); 970s # } 970s # 970s # static GDBusInterfaceVTable * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 970s # } 970s # 970s # static GVariant * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 970s # 970s # GVariantBuilder builder; 970s # guint n; 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #else 970s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #endif 970s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 970s # goto out; 970s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 970s # { 970s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 970s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 970s # { 970s # GVariant *value; 970s # 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); 970s # if (value != NULL) 970s # { 970s # g_variant_take_ref (value); 970s # g_variant_builder_add (&builder, "{sv}", info->name, value); 970s # g_variant_unref (value); 970s # } 970s # } 970s # } 970s # out: 970s # return g_variant_builder_end (&builder); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 970s # 970s # #endif 970s # static void 970s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # g_main_context_unref (skeleton->priv->context); 970s # g_mutex_clear (&skeleton->priv->lock); 970s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 970s # #else 970s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 970s # #endif 970s # 970s # g_mutex_init (&skeleton->priv->lock); 970s # skeleton->priv->context = g_main_context_ref_thread_default (); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusInterfaceSkeletonClass *skeleton_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 970s # 970s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 970s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 970s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 970s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 970s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_skeleton_new: 970s # * 970s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_skeleton_new (void) 970s # { 970s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ 970s # * Code for interface com.acme.Coyote 970s # * ------------------------------------------------------------------------ 970s # */ 970s # 970s # /** 970s # * SECTION:ComAcmeCoyote 970s # * @title: ComAcmeCoyote 970s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 970s # * 970s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 970s # */ 970s # 970s # enum 970s # { 970s # _COM_ACME_COYOTE_SURPRISED, 970s # }; 970s # 970s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 970s # 970s # /* ---- Introspection data for com.acme.Coyote ---- */ 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Run", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-run", 970s # FALSE 970s # }; 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Sleep", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-sleep", 970s # FALSE 970s # }; 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Attack", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-attack", 970s # FALSE 970s # }; 970s # 970s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 970s # { 970s # &_com_acme_coyote_method_info_run.parent_struct, 970s # &_com_acme_coyote_method_info_sleep.parent_struct, 970s # &_com_acme_coyote_method_info_attack.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Surprised", 970s # NULL, 970s # NULL 970s # }, 970s # "surprised" 970s # }; 970s # 970s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 970s # { 970s # &_com_acme_coyote_signal_info_surprised.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Mood", 970s # (gchar *) "s", 970s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 970s # NULL 970s # }, 970s # "mood", 970s # FALSE, 970s # TRUE 970s # }; 970s # 970s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 970s # { 970s # &_com_acme_coyote_property_info_mood.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 970s # { 970s # { 970s # -1, 970s # (gchar *) "com.acme.Coyote", 970s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 970s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 970s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 970s # NULL 970s # }, 970s # "com-acme-coyote", 970s # }; 970s # 970s # 970s # /** 970s # * com_acme_coyote_interface_info: 970s # * 970s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 970s # * 970s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 970s # */ 970s # GDBusInterfaceInfo * 970s # com_acme_coyote_interface_info (void) 970s # { 970s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_override_properties: 970s # * @klass: The class structure for a #GObject derived class. 970s # * @property_id_begin: The property id to assign to the first overridden property. 970s # * 970s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 970s # * The properties are overridden in the order they are defined. 970s # * 970s # * Returns: The last property id. 970s # */ 970s # guint 970s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 970s # { 970s # g_object_class_override_property (klass, property_id_begin++, "mood"); 970s # return property_id_begin - 1; 970s # } 970s # 970s # 970s # inline static void 970s # com_acme_coyote_signal_marshal_surprised ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # g_cclosure_marshal_VOID__VOID (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_run ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_sleep ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_attack ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # 970s # /** 970s # * ComAcmeCoyote: 970s # * 970s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteIface: 970s # * @parent_iface: The parent interface. 970s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 970s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 970s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 970s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 970s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 970s # * 970s # * Virtual table for the D-Bus interface com.acme.Coyote. 970s # */ 970s # 970s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 970s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 970s # 970s # static void 970s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 970s # { 970s # /* GObject signals for incoming D-Bus method calls: */ 970s # /** 970s # * ComAcmeCoyote::handle-run: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-run", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_run, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /** 970s # * ComAcmeCoyote::handle-sleep: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-sleep", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_sleep, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /** 970s # * ComAcmeCoyote::handle-attack: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-attack", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_attack, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /* GObject signals for received D-Bus signals: */ 970s # /** 970s # * ComAcmeCoyote::surprised: 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 970s # * 970s # * 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. 970s # */ 970s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 970s # g_signal_new ("surprised", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 970s # NULL, 970s # NULL, 970s # com_acme_coyote_signal_marshal_surprised, 970s # G_TYPE_NONE, 970s # 0); 970s # 970s # /* GObject properties for D-Bus properties: */ 970s # /** 970s # * ComAcmeCoyote:mood: 970s # * 970s # * Represents the D-Bus property "Mood". 970s # * 970s # * 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. 970s # */ 970s # g_object_interface_install_property (iface, 970s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_get_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Gets the value of the "Mood" D-Bus property. 970s # * 970s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # const gchar * 970s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 970s # { 970s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 970s # 970s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_dup_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Gets a copy of the "Mood" D-Bus property. 970s # * 970s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 970s # * 970s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 970s # */ 970s # gchar * 970s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 970s # { 970s # gchar *value; 970s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 970s # return value; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_set_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * @value: The value to set. 970s # * 970s # * Sets the "Mood" D-Bus property to @value. 970s # * 970s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 970s # */ 970s # void 970s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 970s # { 970s # g_object_set (G_OBJECT (object), "mood", value, NULL); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_emit_surprised: 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Emits the "Surprised" D-Bus signal. 970s # */ 970s # void 970s # com_acme_coyote_emit_surprised ( 970s # ComAcmeCoyote *object) 970s # { 970s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Run() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_run ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Run", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_run(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_run_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_run_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Run", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_sleep ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Sleep", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_sleep(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_sleep_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_sleep_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Sleep", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_attack ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Attack", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_attack(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_attack_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_attack_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Attack", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_run: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_run ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_sleep: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_sleep ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_attack: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_attack ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * ComAcmeCoyoteProxy: 970s # * 970s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteProxyClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #ComAcmeCoyoteProxy. 970s # */ 970s # 970s # struct _ComAcmeCoyoteProxyPrivate 970s # { 970s # GData *qdata; 970s # }; 970s # 970s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 970s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 970s # 970s # #endif 970s # static void 970s # com_acme_coyote_proxy_finalize (GObject *object) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 970s # g_datalist_clear (&proxy->priv->qdata); 970s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_get_property (GObject *object, 970s # guint prop_id, 970s # GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # GVariant *variant; 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 970s # if (info->use_gvariant) 970s # { 970s # g_value_set_variant (value, variant); 970s # } 970s # else 970s # { 970s # if (variant != NULL) 970s # g_dbus_gvariant_to_gvalue (variant, value); 970s # } 970s # if (variant != NULL) 970s # g_variant_unref (variant); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 970s # GAsyncResult *res, 970s # gpointer user_data) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info = user_data; 970s # GError *error; 970s # GVariant *_ret; 970s # error = NULL; 970s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 970s # if (!_ret) 970s # { 970s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 970s # info->parent_struct.name, 970s # error->message, g_quark_to_string (error->domain), error->code); 970s # g_error_free (error); 970s # } 970s # else 970s # { 970s # g_variant_unref (_ret); 970s # } 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_set_property (GObject *object, 970s # guint prop_id, 970s # const GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # GVariant *variant; 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_dbus_proxy_call (G_DBUS_PROXY (object), 970s # "org.freedesktop.DBus.Properties.Set", 970s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 970s # g_variant_unref (variant); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 970s # const gchar *sender_name G_GNUC_UNUSED, 970s # const gchar *signal_name, 970s # GVariant *parameters) 970s # { 970s # _ExtendedGDBusSignalInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # gsize n; 970s # guint signal_id; 970s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 970s # if (info == NULL) 970s # return; 970s # num_params = g_variant_n_children (parameters); 970s # paramv = g_new0 (GValue, num_params + 1); 970s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 970s # g_value_set_object (¶mv[0], proxy); 970s # g_variant_iter_init (&iter, parameters); 970s # n = 1; 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 970s # g_signal_emitv (paramv, signal_id, 0, NULL); 970s # for (n = 0; n < num_params + 1; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 970s # GVariant *changed_properties, 970s # const gchar *const *invalidated_properties) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 970s # guint n; 970s # const gchar *key; 970s # GVariantIter *iter; 970s # _ExtendedGDBusPropertyInfo *info; 970s # g_variant_get (changed_properties, "a{sv}", &iter); 970s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 970s # g_datalist_remove_data (&proxy->priv->qdata, key); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # g_variant_iter_free (iter); 970s # for (n = 0; invalidated_properties[n] != NULL; n++) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 970s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # } 970s # 970s # static const gchar * 970s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 970s # GVariant *variant; 970s # const gchar *value = NULL; 970s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 970s # if (variant != NULL) 970s # { 970s # value = g_variant_get_string (variant, NULL); 970s # g_variant_unref (variant); 970s # } 970s # return value; 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 970s # #else 970s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 970s # #endif 970s # 970s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusProxyClass *proxy_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 970s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 970s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 970s # 970s # proxy_class = G_DBUS_PROXY_CLASS (klass); 970s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 970s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 970s # 970s # com_acme_coyote_override_properties (gobject_class, 1); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 970s # { 970s # iface->get_mood = com_acme_coyote_proxy_get_mood; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # com_acme_coyote_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with com_acme_coyote_proxy_new(). 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_sync: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # com_acme_coyote_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus_sync: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * ComAcmeCoyoteSkeleton: 970s # * 970s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteSkeletonClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #ComAcmeCoyoteSkeleton. 970s # */ 970s # 970s # struct _ComAcmeCoyoteSkeletonPrivate 970s # { 970s # GValue *properties; 970s # GList *changed_properties; 970s # GSource *changed_properties_idle_source; 970s # GMainContext *context; 970s # GMutex lock; 970s # }; 970s # 970s # static void 970s # _com_acme_coyote_skeleton_handle_method_call ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name, 970s # const gchar *method_name, 970s # GVariant *parameters, 970s # GDBusMethodInvocation *invocation, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # _ExtendedGDBusMethodInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # guint num_extra; 970s # gsize n; 970s # guint signal_id; 970s # GValue return_value = G_VALUE_INIT; 970s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 970s # g_assert (info != NULL); 970s # num_params = g_variant_n_children (parameters); 970s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 970s # n = 0; 970s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 970s # g_value_set_object (¶mv[n++], skeleton); 970s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 970s # g_value_set_object (¶mv[n++], invocation); 970s # if (info->pass_fdlist) 970s # { 970s # #ifdef G_OS_UNIX 970s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 970s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 970s # #else 970s # g_assert_not_reached (); 970s # #endif 970s # } 970s # g_variant_iter_init (&iter, parameters); 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 970s # g_value_init (&return_value, G_TYPE_BOOLEAN); 970s # g_signal_emitv (paramv, signal_id, 0, &return_value); 970s # if (!g_value_get_boolean (&return_value)) 970s # 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); 970s # g_value_unset (&return_value); 970s # for (n = 0; n < num_params + num_extra; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static GVariant * 970s # _com_acme_coyote_skeleton_handle_get_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # GVariant *ret; 970s # ret = NULL; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # g_value_init (&value, pspec->value_type); 970s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_value_unset (&value); 970s # } 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _com_acme_coyote_skeleton_handle_set_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GVariant *variant, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # gboolean ret; 970s # ret = FALSE; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # if (info->use_gvariant) 970s # g_value_set_variant (&value, variant); 970s # else 970s # g_dbus_gvariant_to_gvalue (variant, &value); 970s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # g_value_unset (&value); 970s # ret = TRUE; 970s # } 970s # return ret; 970s # } 970s # 970s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 970s # { 970s # _com_acme_coyote_skeleton_handle_method_call, 970s # _com_acme_coyote_skeleton_handle_get_property, 970s # _com_acme_coyote_skeleton_handle_set_property, 970s # {NULL} 970s # }; 970s # 970s # static GDBusInterfaceInfo * 970s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return com_acme_coyote_interface_info (); 970s # } 970s # 970s # static GDBusInterfaceVTable * 970s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 970s # } 970s # 970s # static GVariant * 970s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 970s # 970s # GVariantBuilder builder; 970s # guint n; 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #else 970s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #endif 970s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 970s # goto out; 970s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 970s # { 970s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 970s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 970s # { 970s # GVariant *value; 970s # 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); 970s # if (value != NULL) 970s # { 970s # g_variant_take_ref (value); 970s # g_variant_builder_add (&builder, "{sv}", info->name, value); 970s # g_variant_unref (value); 970s # } 970s # } 970s # } 970s # out: 970s # return g_variant_builder_end (&builder); 970s # } 970s # 970s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 970s # 970s # static void 970s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 970s # gboolean emit_changed = FALSE; 970s # 970s # g_mutex_lock (&skeleton->priv->lock); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # { 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # skeleton->priv->changed_properties_idle_source = NULL; 970s # emit_changed = TRUE; 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # 970s # if (emit_changed) 970s # _com_acme_coyote_emit_changed (skeleton); 970s # } 970s # 970s # static void 970s # _com_acme_coyote_on_signal_surprised ( 970s # ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # 970s # GList *connections, *l; 970s # GVariant *signal_variant; 970s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 970s # 970s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 970s # for (l = connections; l != NULL; l = l->next) 970s # { 970s # GDBusConnection *connection = l->data; 970s # g_dbus_connection_emit_signal (connection, 970s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 970s # signal_variant, NULL); 970s # } 970s # g_variant_unref (signal_variant); 970s # g_list_free_full (connections, g_object_unref); 970s # } 970s # 970s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 970s # 970s # #endif 970s # static void 970s # com_acme_coyote_skeleton_finalize (GObject *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # guint n; 970s # for (n = 0; n < 1; n++) 970s # g_value_unset (&skeleton->priv->properties[n]); 970s # g_free (skeleton->priv->properties); 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # g_main_context_unref (skeleton->priv->context); 970s # g_mutex_clear (&skeleton->priv->lock); 970s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_get_property (GObject *object, 970s # guint prop_id, 970s # GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # g_mutex_lock (&skeleton->priv->lock); 970s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # } 970s # 970s # static gboolean 970s # _com_acme_coyote_emit_changed (gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GList *l; 970s # GVariantBuilder builder; 970s # GVariantBuilder invalidated_builder; 970s # guint num_changes; 970s # 970s # g_mutex_lock (&skeleton->priv->lock); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 970s # #else 970s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 970s # #endif 970s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 970s # { 970s # ChangedProperty *cp = l->data; 970s # GVariant *variant; 970s # const GValue *cur_value; 970s # 970s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 970s # if (!_g_value_equal (cur_value, &cp->orig_value)) 970s # { 970s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 970s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 970s # g_variant_unref (variant); 970s # num_changes++; 970s # } 970s # } 970s # if (num_changes > 0) 970s # { 970s # GList *connections, *ll; 970s # GVariant *signal_variant; 970s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 970s # &builder, &invalidated_builder)); 970s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 970s # for (ll = connections; ll != NULL; ll = ll->next) 970s # { 970s # GDBusConnection *connection = ll->data; 970s # 970s # g_dbus_connection_emit_signal (connection, 970s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 970s # "org.freedesktop.DBus.Properties", 970s # "PropertiesChanged", 970s # signal_variant, 970s # NULL); 970s # } 970s # g_variant_unref (signal_variant); 970s # g_list_free_full (connections, g_object_unref); 970s # } 970s # else 970s # { 970s # g_variant_builder_clear (&builder); 970s # g_variant_builder_clear (&invalidated_builder); 970s # } 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # skeleton->priv->changed_properties = NULL; 970s # skeleton->priv->changed_properties_idle_source = NULL; 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # return FALSE; 970s # } 970s # 970s # static void 970s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 970s # { 970s # ChangedProperty *cp; 970s # GList *l; 970s # cp = NULL; 970s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 970s # { 970s # ChangedProperty *i_cp = l->data; 970s # if (i_cp->info == info) 970s # { 970s # cp = i_cp; 970s # break; 970s # } 970s # } 970s # if (cp == NULL) 970s # { 970s # cp = g_new0 (ChangedProperty, 1); 970s # cp->prop_id = prop_id; 970s # cp->info = info; 970s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 970s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 970s # g_value_copy (orig_value, &cp->orig_value); 970s # } 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_notify (GObject *object, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_mutex_lock (&skeleton->priv->lock); 970s # if (skeleton->priv->changed_properties != NULL && 970s # skeleton->priv->changed_properties_idle_source == NULL) 970s # { 970s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 970s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 970s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 970s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 970s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 970s # g_source_unref (skeleton->priv->changed_properties_idle_source); 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_set_property (GObject *object, 970s # guint prop_id, 970s # const GValue *value, 970s # GParamSpec *pspec) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # g_mutex_lock (&skeleton->priv->lock); 970s # g_object_freeze_notify (object); 970s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 970s # { 970s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 970s # info->emits_changed_signal) 970s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 970s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 970s # g_object_notify_by_pspec (object, pspec); 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # g_object_thaw_notify (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 970s # #else 970s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 970s # #endif 970s # 970s # g_mutex_init (&skeleton->priv->lock); 970s # skeleton->priv->context = g_main_context_ref_thread_default (); 970s # skeleton->priv->properties = g_new0 (GValue, 1); 970s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 970s # } 970s # 970s # static const gchar * 970s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # const gchar *value; 970s # g_mutex_lock (&skeleton->priv->lock); 970s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # return value; 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusInterfaceSkeletonClass *skeleton_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 970s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 970s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 970s # gobject_class->notify = com_acme_coyote_skeleton_notify; 970s # 970s # 970s # com_acme_coyote_override_properties (gobject_class, 1); 970s # 970s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 970s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 970s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 970s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 970s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 970s # { 970s # iface->surprised = _com_acme_coyote_on_signal_surprised; 970s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_skeleton_new: 970s # * 970s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_skeleton_new (void) 970s # { 970s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 970s # } 970s # Error: 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqc1l03oo/tmpovt1nfuo2.xml', '/tmp/tmpqc1l03oo/tmpzo85bpgi1.xml', '--output', '-', '--body'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifdef HAVE_CONFIG_H 970s # # include "config.h" 970s # #endif 970s # 970s # #include 970s # #ifdef G_OS_UNIX 970s # # include 970s # #endif 970s # 970s # #ifdef G_ENABLE_DEBUG 970s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 970s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 970s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 970s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 970s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 970s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 970s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 970s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 970s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 970s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 970s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 970s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 970s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 970s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 970s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 970s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 970s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 970s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 970s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 970s # #else /* !G_ENABLE_DEBUG */ 970s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 970s # * Do not access GValues directly in your code. Instead, use the 970s # * g_value_get_*() functions 970s # */ 970s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 970s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 970s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 970s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 970s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 970s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 970s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 970s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 970s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 970s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 970s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 970s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 970s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 970s # #endif /* !G_ENABLE_DEBUG */ 970s # 970s # typedef struct 970s # { 970s # GDBusArgInfo parent_struct; 970s # gboolean use_gvariant; 970s # } _ExtendedGDBusArgInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusMethodInfo parent_struct; 970s # const gchar *signal_name; 970s # gboolean pass_fdlist; 970s # } _ExtendedGDBusMethodInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusSignalInfo parent_struct; 970s # const gchar *signal_name; 970s # } _ExtendedGDBusSignalInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusPropertyInfo parent_struct; 970s # const gchar *hyphen_name; 970s # guint use_gvariant : 1; 970s # guint emits_changed_signal : 1; 970s # } _ExtendedGDBusPropertyInfo; 970s # 970s # typedef struct 970s # { 970s # GDBusInterfaceInfo parent_struct; 970s # const gchar *hyphen_name; 970s # } _ExtendedGDBusInterfaceInfo; 970s # 970s # typedef struct 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # guint prop_id; 970s # GValue orig_value; /* the value before the change */ 970s # } ChangedProperty; 970s # 970s # static void 970s # _changed_property_free (ChangedProperty *data) 970s # { 970s # g_value_unset (&data->orig_value); 970s # g_free (data); 970s # } 970s # 970s # static gboolean 970s # _g_strv_equal0 (gchar **a, gchar **b) 970s # { 970s # gboolean ret = FALSE; 970s # guint n; 970s # if (a == NULL && b == NULL) 970s # { 970s # ret = TRUE; 970s # goto out; 970s # } 970s # if (a == NULL || b == NULL) 970s # goto out; 970s # if (g_strv_length (a) != g_strv_length (b)) 970s # goto out; 970s # for (n = 0; a[n] != NULL; n++) 970s # if (g_strcmp0 (a[n], b[n]) != 0) 970s # goto out; 970s # ret = TRUE; 970s # out: 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _g_variant_equal0 (GVariant *a, GVariant *b) 970s # { 970s # gboolean ret = FALSE; 970s # if (a == NULL && b == NULL) 970s # { 970s # ret = TRUE; 970s # goto out; 970s # } 970s # if (a == NULL || b == NULL) 970s # goto out; 970s # ret = g_variant_equal (a, b); 970s # out: 970s # return ret; 970s # } 970s # 970s # G_GNUC_UNUSED static gboolean 970s # _g_value_equal (const GValue *a, const GValue *b) 970s # { 970s # gboolean ret = FALSE; 970s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 970s # switch (G_VALUE_TYPE (a)) 970s # { 970s # case G_TYPE_BOOLEAN: 970s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 970s # break; 970s # case G_TYPE_UCHAR: 970s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 970s # break; 970s # case G_TYPE_INT: 970s # ret = (g_value_get_int (a) == g_value_get_int (b)); 970s # break; 970s # case G_TYPE_UINT: 970s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 970s # break; 970s # case G_TYPE_INT64: 970s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 970s # break; 970s # case G_TYPE_UINT64: 970s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 970s # break; 970s # case G_TYPE_DOUBLE: 970s # { 970s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 970s # gdouble da = g_value_get_double (a); 970s # gdouble db = g_value_get_double (b); 970s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 970s # } 970s # break; 970s # case G_TYPE_STRING: 970s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 970s # break; 970s # case G_TYPE_VARIANT: 970s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 970s # break; 970s # default: 970s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 970s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 970s # else 970s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 970s # break; 970s # } 970s # return ret; 970s # } 970s # 970s # static void 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint G_GNUC_UNUSED, 970s # void *marshal_data) 970s # { 970s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 970s # (void *data1, 970s # GDBusMethodInvocation *arg_method_invocation, 970s # void *data2); 970s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 970s # GCClosure *cc = (GCClosure*) closure; 970s # void *data1, *data2; 970s # gboolean v_return; 970s # 970s # g_return_if_fail (return_value != NULL); 970s # g_return_if_fail (n_param_values == 2); 970s # 970s # if (G_CCLOSURE_SWAP_DATA (closure)) 970s # { 970s # data1 = closure->data; 970s # data2 = g_value_peek_pointer (param_values + 0); 970s # } 970s # else 970s # { 970s # data1 = g_value_peek_pointer (param_values + 0); 970s # data2 = closure->data; 970s # } 970s # 970s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 970s # (marshal_data ? marshal_data : cc->callback); 970s # 970s # v_return = 970s # callback (data1, 970s # g_marshal_value_peek_object (param_values + 1), 970s # data2); 970s # 970s # g_value_set_boolean (return_value, v_return); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ 970s # * Code for interface org.project.Bar.Frobnicator 970s # * ------------------------------------------------------------------------ 970s # */ 970s # 970s # /** 970s # * SECTION:OrgProjectBarFrobnicator 970s # * @title: OrgProjectBarFrobnicator 970s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 970s # * 970s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 970s # */ 970s # 970s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 970s # 970s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 970s # { 970s # { 970s # -1, 970s # (gchar *) "RandomMethod", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-random-method", 970s # FALSE 970s # }; 970s # 970s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 970s # { 970s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 970s # { 970s # { 970s # -1, 970s # (gchar *) "org.project.Bar.Frobnicator", 970s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "org-project-bar-frobnicator", 970s # }; 970s # 970s # 970s # /** 970s # * org_project_bar_frobnicator_interface_info: 970s # * 970s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 970s # * 970s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 970s # */ 970s # GDBusInterfaceInfo * 970s # org_project_bar_frobnicator_interface_info (void) 970s # { 970s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_override_properties: 970s # * @klass: The class structure for a #GObject derived class. 970s # * @property_id_begin: The property id to assign to the first overridden property. 970s # * 970s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 970s # * The properties are overridden in the order they are defined. 970s # * 970s # * Returns: The last property id. 970s # */ 970s # guint 970s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 970s # { 970s # return property_id_begin - 1; 970s # } 970s # 970s # 970s # inline static void 970s # org_project_bar_frobnicator_method_marshal_random_method ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # 970s # /** 970s # * OrgProjectBarFrobnicator: 970s # * 970s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorIface: 970s # * @parent_iface: The parent interface. 970s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 970s # * 970s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 970s # */ 970s # 970s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 970s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 970s # 970s # static void 970s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 970s # { 970s # /* GObject signals for incoming D-Bus method calls: */ 970s # /** 970s # * OrgProjectBarFrobnicator::handle-random-method: 970s # * @object: A #OrgProjectBarFrobnicator. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-random-method", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # org_project_bar_frobnicator_method_marshal_random_method, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # org_project_bar_frobnicator_call_random_method ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "RandomMethod", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method_finish: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # org_project_bar_frobnicator_call_random_method_finish ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_call_random_method_sync: 970s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # org_project_bar_frobnicator_call_random_method_sync ( 970s # OrgProjectBarFrobnicator *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "RandomMethod", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_complete_random_method: 970s # * @object: A #OrgProjectBarFrobnicator. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # org_project_bar_frobnicator_complete_random_method ( 970s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorProxy: 970s # * 970s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorProxyClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #OrgProjectBarFrobnicatorProxy. 970s # */ 970s # 970s # struct _OrgProjectBarFrobnicatorProxyPrivate 970s # { 970s # GData *qdata; 970s # }; 970s # 970s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 970s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 970s # 970s # #endif 970s # static void 970s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 970s # { 970s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 970s # g_datalist_clear (&proxy->priv->qdata); 970s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 970s # guint prop_id G_GNUC_UNUSED, 970s # GValue *value G_GNUC_UNUSED, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 970s # guint prop_id G_GNUC_UNUSED, 970s # const GValue *value G_GNUC_UNUSED, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 970s # const gchar *sender_name G_GNUC_UNUSED, 970s # const gchar *signal_name, 970s # GVariant *parameters) 970s # { 970s # _ExtendedGDBusSignalInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # gsize n; 970s # guint signal_id; 970s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 970s # if (info == NULL) 970s # return; 970s # num_params = g_variant_n_children (parameters); 970s # paramv = g_new0 (GValue, num_params + 1); 970s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_set_object (¶mv[0], proxy); 970s # g_variant_iter_init (&iter, parameters); 970s # n = 1; 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_signal_emitv (paramv, signal_id, 0, NULL); 970s # for (n = 0; n < num_params + 1; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 970s # GVariant *changed_properties, 970s # const gchar *const *invalidated_properties) 970s # { 970s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 970s # guint n; 970s # const gchar *key; 970s # GVariantIter *iter; 970s # _ExtendedGDBusPropertyInfo *info; 970s # g_variant_get (changed_properties, "a{sv}", &iter); 970s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 970s # g_datalist_remove_data (&proxy->priv->qdata, key); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # g_variant_iter_free (iter); 970s # for (n = 0; invalidated_properties[n] != NULL; n++) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 970s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 970s # #else 970s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 970s # #endif 970s # 970s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusProxyClass *proxy_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 970s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 970s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 970s # 970s # proxy_class = G_DBUS_PROXY_CLASS (klass); 970s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 970s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # org_project_bar_frobnicator_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_sync: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # org_project_bar_frobnicator_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorSkeleton: 970s # * 970s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * OrgProjectBarFrobnicatorSkeletonClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 970s # */ 970s # 970s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 970s # { 970s # GValue *properties; 970s # GList *changed_properties; 970s # GSource *changed_properties_idle_source; 970s # GMainContext *context; 970s # GMutex lock; 970s # }; 970s # 970s # static void 970s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name, 970s # const gchar *method_name, 970s # GVariant *parameters, 970s # GDBusMethodInvocation *invocation, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # _ExtendedGDBusMethodInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # guint num_extra; 970s # gsize n; 970s # guint signal_id; 970s # GValue return_value = G_VALUE_INIT; 970s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 970s # g_assert (info != NULL); 970s # num_params = g_variant_n_children (parameters); 970s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 970s # n = 0; 970s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_set_object (¶mv[n++], skeleton); 970s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 970s # g_value_set_object (¶mv[n++], invocation); 970s # if (info->pass_fdlist) 970s # { 970s # #ifdef G_OS_UNIX 970s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 970s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 970s # #else 970s # g_assert_not_reached (); 970s # #endif 970s # } 970s # g_variant_iter_init (&iter, parameters); 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 970s # g_value_init (&return_value, G_TYPE_BOOLEAN); 970s # g_signal_emitv (paramv, signal_id, 0, &return_value); 970s # if (!g_value_get_boolean (&return_value)) 970s # 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); 970s # g_value_unset (&return_value); 970s # for (n = 0; n < num_params + num_extra; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static GVariant * 970s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # GVariant *ret; 970s # ret = NULL; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # g_value_init (&value, pspec->value_type); 970s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_value_unset (&value); 970s # } 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GVariant *variant, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # gboolean ret; 970s # ret = FALSE; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # if (info->use_gvariant) 970s # g_value_set_variant (&value, variant); 970s # else 970s # g_dbus_gvariant_to_gvalue (variant, &value); 970s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # g_value_unset (&value); 970s # ret = TRUE; 970s # } 970s # return ret; 970s # } 970s # 970s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 970s # { 970s # _org_project_bar_frobnicator_skeleton_handle_method_call, 970s # _org_project_bar_frobnicator_skeleton_handle_get_property, 970s # _org_project_bar_frobnicator_skeleton_handle_set_property, 970s # {NULL} 970s # }; 970s # 970s # static GDBusInterfaceInfo * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return org_project_bar_frobnicator_interface_info (); 970s # } 970s # 970s # static GDBusInterfaceVTable * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 970s # } 970s # 970s # static GVariant * 970s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 970s # 970s # GVariantBuilder builder; 970s # guint n; 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #else 970s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #endif 970s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 970s # goto out; 970s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 970s # { 970s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 970s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 970s # { 970s # GVariant *value; 970s # 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); 970s # if (value != NULL) 970s # { 970s # g_variant_take_ref (value); 970s # g_variant_builder_add (&builder, "{sv}", info->name, value); 970s # g_variant_unref (value); 970s # } 970s # } 970s # } 970s # out: 970s # return g_variant_builder_end (&builder); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 970s # 970s # #endif 970s # static void 970s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 970s # { 970s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # g_main_context_unref (skeleton->priv->context); 970s # g_mutex_clear (&skeleton->priv->lock); 970s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 970s # #else 970s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 970s # #endif 970s # 970s # g_mutex_init (&skeleton->priv->lock); 970s # skeleton->priv->context = g_main_context_ref_thread_default (); 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusInterfaceSkeletonClass *skeleton_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 970s # 970s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 970s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 970s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 970s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 970s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 970s # { 970s # } 970s # 970s # /** 970s # * org_project_bar_frobnicator_skeleton_new: 970s # * 970s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 970s # * 970s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 970s # */ 970s # OrgProjectBarFrobnicator * 970s # org_project_bar_frobnicator_skeleton_new (void) 970s # { 970s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ 970s # * Code for interface com.acme.Coyote 970s # * ------------------------------------------------------------------------ 970s # */ 970s # 970s # /** 970s # * SECTION:ComAcmeCoyote 970s # * @title: ComAcmeCoyote 970s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 970s # * 970s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 970s # */ 970s # 970s # enum 970s # { 970s # _COM_ACME_COYOTE_SURPRISED, 970s # }; 970s # 970s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 970s # 970s # /* ---- Introspection data for com.acme.Coyote ---- */ 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Run", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-run", 970s # FALSE 970s # }; 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Sleep", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-sleep", 970s # FALSE 970s # }; 970s # 970s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Attack", 970s # NULL, 970s # NULL, 970s # NULL 970s # }, 970s # "handle-attack", 970s # FALSE 970s # }; 970s # 970s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 970s # { 970s # &_com_acme_coyote_method_info_run.parent_struct, 970s # &_com_acme_coyote_method_info_sleep.parent_struct, 970s # &_com_acme_coyote_method_info_attack.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Surprised", 970s # NULL, 970s # NULL 970s # }, 970s # "surprised" 970s # }; 970s # 970s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 970s # { 970s # &_com_acme_coyote_signal_info_surprised.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 970s # { 970s # { 970s # -1, 970s # (gchar *) "Mood", 970s # (gchar *) "s", 970s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 970s # NULL 970s # }, 970s # "mood", 970s # FALSE, 970s # TRUE 970s # }; 970s # 970s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 970s # { 970s # &_com_acme_coyote_property_info_mood.parent_struct, 970s # NULL 970s # }; 970s # 970s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 970s # { 970s # { 970s # -1, 970s # (gchar *) "com.acme.Coyote", 970s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 970s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 970s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 970s # NULL 970s # }, 970s # "com-acme-coyote", 970s # }; 970s # 970s # 970s # /** 970s # * com_acme_coyote_interface_info: 970s # * 970s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 970s # * 970s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 970s # */ 970s # GDBusInterfaceInfo * 970s # com_acme_coyote_interface_info (void) 970s # { 970s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_override_properties: 970s # * @klass: The class structure for a #GObject derived class. 970s # * @property_id_begin: The property id to assign to the first overridden property. 970s # * 970s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 970s # * The properties are overridden in the order they are defined. 970s # * 970s # * Returns: The last property id. 970s # */ 970s # guint 970s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 970s # { 970s # g_object_class_override_property (klass, property_id_begin++, "mood"); 970s # return property_id_begin - 1; 970s # } 970s # 970s # 970s # inline static void 970s # com_acme_coyote_signal_marshal_surprised ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # g_cclosure_marshal_VOID__VOID (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_run ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_sleep ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # inline static void 970s # com_acme_coyote_method_marshal_attack ( 970s # GClosure *closure, 970s # GValue *return_value, 970s # unsigned int n_param_values, 970s # const GValue *param_values, 970s # void *invocation_hint, 970s # void *marshal_data) 970s # { 970s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 970s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 970s # } 970s # 970s # 970s # /** 970s # * ComAcmeCoyote: 970s # * 970s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteIface: 970s # * @parent_iface: The parent interface. 970s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 970s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 970s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 970s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 970s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 970s # * 970s # * Virtual table for the D-Bus interface com.acme.Coyote. 970s # */ 970s # 970s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 970s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 970s # 970s # static void 970s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 970s # { 970s # /* GObject signals for incoming D-Bus method calls: */ 970s # /** 970s # * ComAcmeCoyote::handle-run: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-run", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_run, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /** 970s # * ComAcmeCoyote::handle-sleep: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-sleep", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_sleep, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /** 970s # * ComAcmeCoyote::handle-attack: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: A #GDBusMethodInvocation. 970s # * 970s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # g_signal_new ("handle-attack", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 970s # g_signal_accumulator_true_handled, 970s # NULL, 970s # com_acme_coyote_method_marshal_attack, 970s # G_TYPE_BOOLEAN, 970s # 1, 970s # G_TYPE_DBUS_METHOD_INVOCATION); 970s # 970s # /* GObject signals for received D-Bus signals: */ 970s # /** 970s # * ComAcmeCoyote::surprised: 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 970s # * 970s # * 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. 970s # */ 970s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 970s # g_signal_new ("surprised", 970s # G_TYPE_FROM_INTERFACE (iface), 970s # G_SIGNAL_RUN_LAST, 970s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 970s # NULL, 970s # NULL, 970s # com_acme_coyote_signal_marshal_surprised, 970s # G_TYPE_NONE, 970s # 0); 970s # 970s # /* GObject properties for D-Bus properties: */ 970s # /** 970s # * ComAcmeCoyote:mood: 970s # * 970s # * Represents the D-Bus property "Mood". 970s # * 970s # * 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. 970s # */ 970s # g_object_interface_install_property (iface, 970s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_get_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Gets the value of the "Mood" D-Bus property. 970s # * 970s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 970s # * 970s # * 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. 970s # * 970s # * 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. 970s # */ 970s # const gchar * 970s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 970s # { 970s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 970s # 970s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_dup_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Gets a copy of the "Mood" D-Bus property. 970s # * 970s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 970s # * 970s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 970s # */ 970s # gchar * 970s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 970s # { 970s # gchar *value; 970s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 970s # return value; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_set_mood: (skip) 970s # * @object: A #ComAcmeCoyote. 970s # * @value: The value to set. 970s # * 970s # * Sets the "Mood" D-Bus property to @value. 970s # * 970s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 970s # */ 970s # void 970s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 970s # { 970s # g_object_set (G_OBJECT (object), "mood", value, NULL); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_emit_surprised: 970s # * @object: A #ComAcmeCoyote. 970s # * 970s # * Emits the "Surprised" D-Bus signal. 970s # */ 970s # void 970s # com_acme_coyote_emit_surprised ( 970s # ComAcmeCoyote *object) 970s # { 970s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Run() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_run ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Run", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_run(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_run_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_run_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_run_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Run", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_sleep ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Sleep", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_sleep(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_sleep_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_sleep_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_sleep_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Sleep", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 970s # */ 970s # void 970s # com_acme_coyote_call_attack ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 970s # "Attack", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # callback, 970s # user_data); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack_finish: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Finishes an operation started with com_acme_coyote_call_attack(). 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_attack_finish ( 970s # ComAcmeCoyote *proxy, 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_call_attack_sync: 970s # * @proxy: A #ComAcmeCoyoteProxy. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL. 970s # * 970s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 970s # * 970s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 970s # */ 970s # gboolean 970s # com_acme_coyote_call_attack_sync ( 970s # ComAcmeCoyote *proxy, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GVariant *_ret; 970s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 970s # "Attack", 970s # g_variant_new ("()"), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # cancellable, 970s # error); 970s # if (_ret == NULL) 970s # goto _out; 970s # g_variant_get (_ret, 970s # "()"); 970s # g_variant_unref (_ret); 970s # _out: 970s # return _ret != NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_run: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_run ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_sleep: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_sleep ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_complete_attack: 970s # * @object: A #ComAcmeCoyote. 970s # * @invocation: (transfer full): A #GDBusMethodInvocation. 970s # * 970s # * 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. 970s # * 970s # * This method will free @invocation, you cannot use it afterwards. 970s # */ 970s # void 970s # com_acme_coyote_complete_attack ( 970s # ComAcmeCoyote *object G_GNUC_UNUSED, 970s # GDBusMethodInvocation *invocation) 970s # { 970s # g_dbus_method_invocation_return_value (invocation, 970s # g_variant_new ("()")); 970s # } 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * ComAcmeCoyoteProxy: 970s # * 970s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteProxyClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #ComAcmeCoyoteProxy. 970s # */ 970s # 970s # struct _ComAcmeCoyoteProxyPrivate 970s # { 970s # GData *qdata; 970s # }; 970s # 970s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 970s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 970s # 970s # #endif 970s # static void 970s # com_acme_coyote_proxy_finalize (GObject *object) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 970s # g_datalist_clear (&proxy->priv->qdata); 970s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_get_property (GObject *object, 970s # guint prop_id, 970s # GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # GVariant *variant; 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 970s # if (info->use_gvariant) 970s # { 970s # g_value_set_variant (value, variant); 970s # } 970s # else 970s # { 970s # if (variant != NULL) 970s # g_dbus_gvariant_to_gvalue (variant, value); 970s # } 970s # if (variant != NULL) 970s # g_variant_unref (variant); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 970s # GAsyncResult *res, 970s # gpointer user_data) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info = user_data; 970s # GError *error; 970s # GVariant *_ret; 970s # error = NULL; 970s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 970s # if (!_ret) 970s # { 970s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 970s # info->parent_struct.name, 970s # error->message, g_quark_to_string (error->domain), error->code); 970s # g_error_free (error); 970s # } 970s # else 970s # { 970s # g_variant_unref (_ret); 970s # } 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_set_property (GObject *object, 970s # guint prop_id, 970s # const GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # GVariant *variant; 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_dbus_proxy_call (G_DBUS_PROXY (object), 970s # "org.freedesktop.DBus.Properties.Set", 970s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 970s # G_DBUS_CALL_FLAGS_NONE, 970s # -1, 970s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 970s # g_variant_unref (variant); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 970s # const gchar *sender_name G_GNUC_UNUSED, 970s # const gchar *signal_name, 970s # GVariant *parameters) 970s # { 970s # _ExtendedGDBusSignalInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # gsize n; 970s # guint signal_id; 970s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 970s # if (info == NULL) 970s # return; 970s # num_params = g_variant_n_children (parameters); 970s # paramv = g_new0 (GValue, num_params + 1); 970s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 970s # g_value_set_object (¶mv[0], proxy); 970s # g_variant_iter_init (&iter, parameters); 970s # n = 1; 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 970s # g_signal_emitv (paramv, signal_id, 0, NULL); 970s # for (n = 0; n < num_params + 1; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 970s # GVariant *changed_properties, 970s # const gchar *const *invalidated_properties) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 970s # guint n; 970s # const gchar *key; 970s # GVariantIter *iter; 970s # _ExtendedGDBusPropertyInfo *info; 970s # g_variant_get (changed_properties, "a{sv}", &iter); 970s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 970s # g_datalist_remove_data (&proxy->priv->qdata, key); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # g_variant_iter_free (iter); 970s # for (n = 0; invalidated_properties[n] != NULL; n++) 970s # { 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 970s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 970s # if (info != NULL) 970s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 970s # } 970s # } 970s # 970s # static const gchar * 970s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 970s # GVariant *variant; 970s # const gchar *value = NULL; 970s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 970s # if (variant != NULL) 970s # { 970s # value = g_variant_get_string (variant, NULL); 970s # g_variant_unref (variant); 970s # } 970s # return value; 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 970s # #else 970s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 970s # #endif 970s # 970s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusProxyClass *proxy_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 970s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 970s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 970s # 970s # proxy_class = G_DBUS_PROXY_CLASS (klass); 970s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 970s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 970s # 970s # com_acme_coyote_override_properties (gobject_class, 1); 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 970s # { 970s # iface->get_mood = com_acme_coyote_proxy_get_mood; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # com_acme_coyote_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with com_acme_coyote_proxy_new(). 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_sync: 970s # * @connection: A #GDBusConnection. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 970s # * @user_data: User data to pass to @callback. 970s # * 970s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 970s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 970s # * 970s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 970s # */ 970s # void 970s # com_acme_coyote_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data) 970s # { 970s # 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); 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus_finish: 970s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 970s # * @error: Return location for error or %NULL 970s # * 970s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error) 970s # { 970s # GObject *ret; 970s # GObject *source_object; 970s # source_object = g_async_result_get_source_object (res); 970s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 970s # g_object_unref (source_object); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_proxy_new_for_bus_sync: 970s # * @bus_type: A #GBusType. 970s # * @flags: Flags from the #GDBusProxyFlags enumeration. 970s # * @name: A bus name (well-known or unique). 970s # * @object_path: An object path. 970s # * @cancellable: (nullable): A #GCancellable or %NULL. 970s # * @error: Return location for error or %NULL 970s # * 970s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 970s # * 970s # * The calling thread is blocked until a reply is received. 970s # * 970s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error) 970s # { 970s # GInitable *ret; 970s # 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); 970s # if (ret != NULL) 970s # return COM_ACME_COYOTE (ret); 970s # else 970s # return NULL; 970s # } 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # 970s # /** 970s # * ComAcmeCoyoteSkeleton: 970s # * 970s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 970s # */ 970s # 970s # /** 970s # * ComAcmeCoyoteSkeletonClass: 970s # * @parent_class: The parent class. 970s # * 970s # * Class structure for #ComAcmeCoyoteSkeleton. 970s # */ 970s # 970s # struct _ComAcmeCoyoteSkeletonPrivate 970s # { 970s # GValue *properties; 970s # GList *changed_properties; 970s # GSource *changed_properties_idle_source; 970s # GMainContext *context; 970s # GMutex lock; 970s # }; 970s # 970s # static void 970s # _com_acme_coyote_skeleton_handle_method_call ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name, 970s # const gchar *method_name, 970s # GVariant *parameters, 970s # GDBusMethodInvocation *invocation, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # _ExtendedGDBusMethodInfo *info; 970s # GVariantIter iter; 970s # GVariant *child; 970s # GValue *paramv; 970s # gsize num_params; 970s # guint num_extra; 970s # gsize n; 970s # guint signal_id; 970s # GValue return_value = G_VALUE_INIT; 970s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 970s # g_assert (info != NULL); 970s # num_params = g_variant_n_children (parameters); 970s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 970s # n = 0; 970s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 970s # g_value_set_object (¶mv[n++], skeleton); 970s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 970s # g_value_set_object (¶mv[n++], invocation); 970s # if (info->pass_fdlist) 970s # { 970s # #ifdef G_OS_UNIX 970s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 970s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 970s # #else 970s # g_assert_not_reached (); 970s # #endif 970s # } 970s # g_variant_iter_init (&iter, parameters); 970s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 970s # { 970s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 970s # if (arg_info->use_gvariant) 970s # { 970s # g_value_init (¶mv[n], G_TYPE_VARIANT); 970s # g_value_set_variant (¶mv[n], child); 970s # n++; 970s # } 970s # else 970s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 970s # g_variant_unref (child); 970s # } 970s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 970s # g_value_init (&return_value, G_TYPE_BOOLEAN); 970s # g_signal_emitv (paramv, signal_id, 0, &return_value); 970s # if (!g_value_get_boolean (&return_value)) 970s # 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); 970s # g_value_unset (&return_value); 970s # for (n = 0; n < num_params + num_extra; n++) 970s # g_value_unset (¶mv[n]); 970s # g_free (paramv); 970s # } 970s # 970s # static GVariant * 970s # _com_acme_coyote_skeleton_handle_get_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # GVariant *ret; 970s # ret = NULL; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # g_value_init (&value, pspec->value_type); 970s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 970s # g_value_unset (&value); 970s # } 970s # return ret; 970s # } 970s # 970s # static gboolean 970s # _com_acme_coyote_skeleton_handle_set_property ( 970s # GDBusConnection *connection G_GNUC_UNUSED, 970s # const gchar *sender G_GNUC_UNUSED, 970s # const gchar *object_path G_GNUC_UNUSED, 970s # const gchar *interface_name G_GNUC_UNUSED, 970s # const gchar *property_name, 970s # GVariant *variant, 970s # GError **error, 970s # gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GValue value = G_VALUE_INIT; 970s # GParamSpec *pspec; 970s # _ExtendedGDBusPropertyInfo *info; 970s # gboolean ret; 970s # ret = FALSE; 970s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 970s # g_assert (info != NULL); 970s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 970s # if (pspec == NULL) 970s # { 970s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 970s # } 970s # else 970s # { 970s # if (info->use_gvariant) 970s # g_value_set_variant (&value, variant); 970s # else 970s # g_dbus_gvariant_to_gvalue (variant, &value); 970s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 970s # g_value_unset (&value); 970s # ret = TRUE; 970s # } 970s # return ret; 970s # } 970s # 970s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 970s # { 970s # _com_acme_coyote_skeleton_handle_method_call, 970s # _com_acme_coyote_skeleton_handle_get_property, 970s # _com_acme_coyote_skeleton_handle_set_property, 970s # {NULL} 970s # }; 970s # 970s # static GDBusInterfaceInfo * 970s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return com_acme_coyote_interface_info (); 970s # } 970s # 970s # static GDBusInterfaceVTable * 970s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 970s # { 970s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 970s # } 970s # 970s # static GVariant * 970s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 970s # 970s # GVariantBuilder builder; 970s # guint n; 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #else 970s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 970s # #endif 970s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 970s # goto out; 970s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 970s # { 970s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 970s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 970s # { 970s # GVariant *value; 970s # 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); 970s # if (value != NULL) 970s # { 970s # g_variant_take_ref (value); 970s # g_variant_builder_add (&builder, "{sv}", info->name, value); 970s # g_variant_unref (value); 970s # } 970s # } 970s # } 970s # out: 970s # return g_variant_builder_end (&builder); 970s # } 970s # 970s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 970s # 970s # static void 970s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 970s # gboolean emit_changed = FALSE; 970s # 970s # g_mutex_lock (&skeleton->priv->lock); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # { 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # skeleton->priv->changed_properties_idle_source = NULL; 970s # emit_changed = TRUE; 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # 970s # if (emit_changed) 970s # _com_acme_coyote_emit_changed (skeleton); 970s # } 970s # 970s # static void 970s # _com_acme_coyote_on_signal_surprised ( 970s # ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # 970s # GList *connections, *l; 970s # GVariant *signal_variant; 970s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 970s # 970s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 970s # for (l = connections; l != NULL; l = l->next) 970s # { 970s # GDBusConnection *connection = l->data; 970s # g_dbus_connection_emit_signal (connection, 970s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 970s # signal_variant, NULL); 970s # } 970s # g_variant_unref (signal_variant); 970s # g_list_free_full (connections, g_object_unref); 970s # } 970s # 970s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 970s # 970s # #else 970s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 970s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 970s # 970s # #endif 970s # static void 970s # com_acme_coyote_skeleton_finalize (GObject *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # guint n; 970s # for (n = 0; n < 1; n++) 970s # g_value_unset (&skeleton->priv->properties[n]); 970s # g_free (skeleton->priv->properties); 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # if (skeleton->priv->changed_properties_idle_source != NULL) 970s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 970s # g_main_context_unref (skeleton->priv->context); 970s # g_mutex_clear (&skeleton->priv->lock); 970s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_get_property (GObject *object, 970s # guint prop_id, 970s # GValue *value, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # g_mutex_lock (&skeleton->priv->lock); 970s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # } 970s # 970s # static gboolean 970s # _com_acme_coyote_emit_changed (gpointer user_data) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 970s # GList *l; 970s # GVariantBuilder builder; 970s # GVariantBuilder invalidated_builder; 970s # guint num_changes; 970s # 970s # g_mutex_lock (&skeleton->priv->lock); 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 970s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 970s # #else 970s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 970s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 970s # #endif 970s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 970s # { 970s # ChangedProperty *cp = l->data; 970s # GVariant *variant; 970s # const GValue *cur_value; 970s # 970s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 970s # if (!_g_value_equal (cur_value, &cp->orig_value)) 970s # { 970s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 970s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 970s # g_variant_unref (variant); 970s # num_changes++; 970s # } 970s # } 970s # if (num_changes > 0) 970s # { 970s # GList *connections, *ll; 970s # GVariant *signal_variant; 970s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 970s # &builder, &invalidated_builder)); 970s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 970s # for (ll = connections; ll != NULL; ll = ll->next) 970s # { 970s # GDBusConnection *connection = ll->data; 970s # 970s # g_dbus_connection_emit_signal (connection, 970s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 970s # "org.freedesktop.DBus.Properties", 970s # "PropertiesChanged", 970s # signal_variant, 970s # NULL); 970s # } 970s # g_variant_unref (signal_variant); 970s # g_list_free_full (connections, g_object_unref); 970s # } 970s # else 970s # { 970s # g_variant_builder_clear (&builder); 970s # g_variant_builder_clear (&invalidated_builder); 970s # } 970s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 970s # skeleton->priv->changed_properties = NULL; 970s # skeleton->priv->changed_properties_idle_source = NULL; 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # return FALSE; 970s # } 970s # 970s # static void 970s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 970s # { 970s # ChangedProperty *cp; 970s # GList *l; 970s # cp = NULL; 970s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 970s # { 970s # ChangedProperty *i_cp = l->data; 970s # if (i_cp->info == info) 970s # { 970s # cp = i_cp; 970s # break; 970s # } 970s # } 970s # if (cp == NULL) 970s # { 970s # cp = g_new0 (ChangedProperty, 1); 970s # cp->prop_id = prop_id; 970s # cp->info = info; 970s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 970s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 970s # g_value_copy (orig_value, &cp->orig_value); 970s # } 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_notify (GObject *object, 970s # GParamSpec *pspec G_GNUC_UNUSED) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_mutex_lock (&skeleton->priv->lock); 970s # if (skeleton->priv->changed_properties != NULL && 970s # skeleton->priv->changed_properties_idle_source == NULL) 970s # { 970s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 970s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 970s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 970s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 970s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 970s # g_source_unref (skeleton->priv->changed_properties_idle_source); 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_set_property (GObject *object, 970s # guint prop_id, 970s # const GValue *value, 970s # GParamSpec *pspec) 970s # { 970s # const _ExtendedGDBusPropertyInfo *info; 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # g_assert (prop_id != 0 && prop_id - 1 < 1); 970s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 970s # g_mutex_lock (&skeleton->priv->lock); 970s # g_object_freeze_notify (object); 970s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 970s # { 970s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 970s # info->emits_changed_signal) 970s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 970s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 970s # g_object_notify_by_pspec (object, pspec); 970s # } 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # g_object_thaw_notify (object); 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 970s # { 970s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 970s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 970s # #else 970s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 970s # #endif 970s # 970s # g_mutex_init (&skeleton->priv->lock); 970s # skeleton->priv->context = g_main_context_ref_thread_default (); 970s # skeleton->priv->properties = g_new0 (GValue, 1); 970s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 970s # } 970s # 970s # static const gchar * 970s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 970s # { 970s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 970s # const gchar *value; 970s # g_mutex_lock (&skeleton->priv->lock); 970s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 970s # g_mutex_unlock (&skeleton->priv->lock); 970s # return value; 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 970s # { 970s # GObjectClass *gobject_class; 970s # GDBusInterfaceSkeletonClass *skeleton_class; 970s # 970s # gobject_class = G_OBJECT_CLASS (klass); 970s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 970s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 970s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 970s # gobject_class->notify = com_acme_coyote_skeleton_notify; 970s # 970s # 970s # com_acme_coyote_override_properties (gobject_class, 1); 970s # 970s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 970s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 970s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 970s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 970s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 970s # 970s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 970s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 970s # #endif 970s # } 970s # 970s # static void 970s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 970s # { 970s # iface->surprised = _com_acme_coyote_on_signal_surprised; 970s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 970s # } 970s # 970s # /** 970s # * com_acme_coyote_skeleton_new: 970s # * 970s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 970s # * 970s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 970s # */ 970s # ComAcmeCoyote * 970s # com_acme_coyote_skeleton_new (void) 970s # { 970s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 970s # } 970s # Error: 970s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 970s # gdbus-codegen: /usr/bin/gdbus-codegen 970s # tmpdir: /tmp/tmphbp6e5t8 970s # /tmp/tmphbp6e5t8/tmpnbq8q7_h.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphbp6e5t8/tmpnbq8q7_h.xml', '--output', '-', '--header'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifndef __STDOUT__ 970s # #define __STDOUT__ 970s # 970s # #include 970s # 970s # G_BEGIN_DECLS 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for FDPassing */ 970s # 970s # #define TYPE_FDPASSING (fdpassing_get_type ()) 970s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 970s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 970s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 970s # 970s # struct _FDPassing; 970s # typedef struct _FDPassing FDPassing; 970s # typedef struct _FDPassingIface FDPassingIface; 970s # 970s # struct _FDPassingIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # gboolean (*handle_hello_fd) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *arg_greeting); 970s # 970s # gboolean (*handle_no_annotation) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale); 970s # 970s # gboolean (*handle_no_annotation_nested) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *arg_files); 970s # 970s # }; 970s # 970s # GType fdpassing_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *fdpassing_interface_info (void); 970s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void fdpassing_complete_hello_fd ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *response); 970s # 970s # void fdpassing_complete_no_annotation ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *response, 970s # const gchar *response_locale); 970s # 970s # void fdpassing_complete_no_annotation_nested ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void fdpassing_call_hello_fd ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GUnixFDList *fd_list, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_hello_fd_finish ( 970s # FDPassing *proxy, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_hello_fd_sync ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GUnixFDList *fd_list, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_finish ( 970s # FDPassing *proxy, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation_nested ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_finish ( 970s # FDPassing *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 970s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 970s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 970s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 970s # 970s # typedef struct _FDPassingProxy FDPassingProxy; 970s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 970s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 970s # 970s # struct _FDPassingProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # FDPassingProxyPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 970s # #endif 970s # 970s # void fdpassing_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 970s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 970s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 970s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 970s # 970s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 970s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 970s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 970s # 970s # struct _FDPassingSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # FDPassingSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 970s # #endif 970s # 970s # FDPassing *fdpassing_skeleton_new (void); 970s # 970s # 970s # G_END_DECLS 970s # 970s # #endif /* __STDOUT__ */ 970s # Error: 970s # 970s # /tmp/tmphbp6e5t8/tmpbq83qsik.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphbp6e5t8/tmpbq83qsik.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifndef __STDOUT__ 970s # #define __STDOUT__ 970s # 970s # #include 970s # 970s # G_BEGIN_DECLS 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for FDPassing */ 970s # 970s # #define TYPE_FDPASSING (fdpassing_get_type ()) 970s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 970s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 970s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 970s # 970s # struct _FDPassing; 970s # typedef struct _FDPassing FDPassing; 970s # typedef struct _FDPassingIface FDPassingIface; 970s # 970s # struct _FDPassingIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # gboolean (*handle_hello_fd) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *arg_greeting); 970s # 970s # gboolean (*handle_no_annotation) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale); 970s # 970s # gboolean (*handle_no_annotation_nested) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *arg_files); 970s # 970s # }; 970s # 970s # GType fdpassing_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *fdpassing_interface_info (void); 970s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void fdpassing_complete_hello_fd ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *response); 970s # 970s # void fdpassing_complete_no_annotation ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GVariant *response, 970s # const gchar *response_locale); 970s # 970s # void fdpassing_complete_no_annotation_nested ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void fdpassing_call_hello_fd ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GUnixFDList *fd_list, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_hello_fd_finish ( 970s # FDPassing *proxy, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_hello_fd_sync ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GUnixFDList *fd_list, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_finish ( 970s # FDPassing *proxy, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation_nested ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_finish ( 970s # FDPassing *proxy, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 970s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 970s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 970s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 970s # 970s # typedef struct _FDPassingProxy FDPassingProxy; 970s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 970s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 970s # 970s # struct _FDPassingProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # FDPassingProxyPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 970s # #endif 970s # 970s # void fdpassing_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 970s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 970s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 970s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 970s # 970s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 970s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 970s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 970s # 970s # struct _FDPassingSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # FDPassingSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 970s # #endif 970s # 970s # FDPassing *fdpassing_skeleton_new (void); 970s # 970s # 970s # G_END_DECLS 970s # 970s # #endif /* __STDOUT__ */ 970s # Error: 970s # 970s # /tmp/tmphbp6e5t8/tmp1d5494fz.xml: 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # 970s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphbp6e5t8/tmp1d5494fz.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 970s # Return code: 0 970s # Output: 970s # /* 970s # * This file is generated by gdbus-codegen, do not modify it. 970s # * 970s # * The license of this code is the same as for the D-Bus interface description 970s # * it was derived from. Note that it links to GLib, so must comply with the 970s # * LGPL linking clauses. 970s # */ 970s # 970s # #ifndef __STDOUT__ 970s # #define __STDOUT__ 970s # 970s # #include 970s # 970s # G_BEGIN_DECLS 970s # 970s # 970s # /* ------------------------------------------------------------------------ */ 970s # /* Declarations for FDPassing */ 970s # 970s # #define TYPE_FDPASSING (fdpassing_get_type ()) 970s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 970s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 970s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 970s # 970s # struct _FDPassing; 970s # typedef struct _FDPassing FDPassing; 970s # typedef struct _FDPassingIface FDPassingIface; 970s # 970s # struct _FDPassingIface 970s # { 970s # GTypeInterface parent_iface; 970s # 970s # gboolean (*handle_hello_fd) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *arg_greeting); 970s # 970s # gboolean (*handle_no_annotation) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale); 970s # 970s # gboolean (*handle_no_annotation_nested) ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # GVariant *arg_files); 970s # 970s # }; 970s # 970s # GType fdpassing_get_type (void) G_GNUC_CONST; 970s # 970s # GDBusInterfaceInfo *fdpassing_interface_info (void); 970s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 970s # 970s # 970s # /* D-Bus method call completion functions: */ 970s # void fdpassing_complete_hello_fd ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # const gchar *response); 970s # 970s # void fdpassing_complete_no_annotation ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list, 970s # GVariant *response, 970s # const gchar *response_locale); 970s # 970s # void fdpassing_complete_no_annotation_nested ( 970s # FDPassing *object, 970s # GDBusMethodInvocation *invocation, 970s # GUnixFDList *fd_list); 970s # 970s # 970s # 970s # /* D-Bus method calls: */ 970s # void fdpassing_call_hello_fd ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_hello_fd_finish ( 970s # FDPassing *proxy, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_hello_fd_sync ( 970s # FDPassing *proxy, 970s # const gchar *arg_greeting, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # gchar **out_response, 970s # GUnixFDList **out_fd_list, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_finish ( 970s # FDPassing *proxy, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GUnixFDList **out_fd_list, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_greeting, 970s # const gchar *arg_greeting_locale, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # GVariant **out_response, 970s # gchar **out_response_locale, 970s # GUnixFDList **out_fd_list, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_call_no_annotation_nested ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_finish ( 970s # FDPassing *proxy, 970s # GUnixFDList **out_fd_list, 970s # GAsyncResult *res, 970s # GError **error); 970s # 970s # gboolean fdpassing_call_no_annotation_nested_sync ( 970s # FDPassing *proxy, 970s # GVariant *arg_files, 970s # GDBusCallFlags call_flags, 970s # gint timeout_msec, 970s # GUnixFDList *fd_list, 970s # GUnixFDList **out_fd_list, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 970s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 970s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 970s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 970s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 970s # 970s # typedef struct _FDPassingProxy FDPassingProxy; 970s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 970s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 970s # 970s # struct _FDPassingProxy 970s # { 970s # /*< private >*/ 970s # GDBusProxy parent_instance; 970s # FDPassingProxyPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingProxyClass 970s # { 970s # GDBusProxyClass parent_class; 970s # }; 970s # 970s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 970s # #endif 970s # 970s # void fdpassing_proxy_new ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_sync ( 970s # GDBusConnection *connection, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # void fdpassing_proxy_new_for_bus ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GAsyncReadyCallback callback, 970s # gpointer user_data); 970s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 970s # GAsyncResult *res, 970s # GError **error); 970s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 970s # GBusType bus_type, 970s # GDBusProxyFlags flags, 970s # const gchar *name, 970s # const gchar *object_path, 970s # GCancellable *cancellable, 970s # GError **error); 970s # 970s # 970s # /* ---- */ 970s # 970s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 970s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 970s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 970s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 970s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 970s # 970s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 970s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 970s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 970s # 970s # struct _FDPassingSkeleton 970s # { 970s # /*< private >*/ 970s # GDBusInterfaceSkeleton parent_instance; 970s # FDPassingSkeletonPrivate *priv; 970s # }; 970s # 970s # struct _FDPassingSkeletonClass 970s # { 970s # GDBusInterfaceSkeletonClass parent_class; 970s # }; 970s # 970s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 970s # 970s # #if GLIB_CHECK_VERSION(2, 44, 0) 970s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 970s # #endif 970s # 970s # FDPassing *fdpassing_skeleton_new (void); 970s # 970s # 970s # G_END_DECLS 970s # 970s # #endif /* __STDOUT__ */ 970s # Error: 970s 1..39 970s ok - glib/codegen.py.test 970s # Running test: glib/dynamictype.test 970s TAP version 14 970s # random seed: R02S5f99e4a038f20b10adb5770d6998b7f9 970s 1..2 970s # Start of gobject tests 970s ok 1 /gobject/dynamic-type 970s # Start of dynamic-type tests 970s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 970s ok 2 /gobject/dynamic-type/query 970s # End of dynamic-type tests 970s # End of gobject tests 970s ok - glib/dynamictype.test 970s # Running test: glib/gdbus-proxy-threads.test 970s TAP version 14 970s # random seed: R02S40478c1b67b815777bdb897d41c4c159 970s 1..1 970s # Start of gdbus tests 970s # Start of proxy tests 970s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/home 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/cache 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/system-config2 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/config 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/system-data2 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/data 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/state 970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_NNPPE3/gdbus/proxy/vs-threads/.dirs/runtime 971s ok 1 /gdbus/proxy/vs-threads 971s # slow test /gdbus/proxy/vs-threads executed in 0.65 secs 971s # End of proxy tests 971s # End of gdbus tests 971s cleaning up pid 2849 971s ok - glib/gdbus-proxy-threads.test 971s # Running test: glib/utf8-performance.test 971s ok - glib/utf8-performance.test 971s TAP version 14 971s # random seed: R02Sf6ea34def85726035eeb9744f2d1426f 971s 1..36 971s # Start of utf8 tests 971s # Start of perf tests 971s # Start of get_char tests 971s # max perf: inf MB/s 971s ok 1 /utf8/perf/get_char/ascii 971s # max perf: 67.0 MB/s 971s ok 2 /utf8/perf/get_char/latin1 971s # max perf: inf MB/s 971s ok 3 /utf8/perf/get_char/cyrillic 971s # max perf: 156.0 MB/s 971s ok 4 /utf8/perf/get_char/han 971s # End of get_char tests 971s # Start of get_char-backwards tests 971s # max perf: 43.0 MB/s 971s ok 5 /utf8/perf/get_char-backwards/ascii 971s # max perf: 67.0 MB/s 971s ok 6 /utf8/perf/get_char-backwards/latin1 971s # max perf: 160.0 MB/s 971s ok 7 /utf8/perf/get_char-backwards/cyrillic 971s # max perf: 156.0 MB/s 971s ok 8 /utf8/perf/get_char-backwards/han 971s # End of get_char-backwards tests 971s # Start of get_char_validated tests 971s # max perf: 43.0 MB/s 971s ok 9 /utf8/perf/get_char_validated/ascii 971s # max perf: inf MB/s 971s ok 10 /utf8/perf/get_char_validated/latin1 971s # max perf: inf MB/s 971s ok 11 /utf8/perf/get_char_validated/cyrillic 971s # max perf: inf MB/s 971s ok 12 /utf8/perf/get_char_validated/han 971s # End of get_char_validated tests 971s # Start of utf8_to_ucs4 tests 971s # max perf: inf MB/s 971s ok 13 /utf8/perf/utf8_to_ucs4/ascii 971s # max perf: inf MB/s 971s ok 14 /utf8/perf/utf8_to_ucs4/latin1 971s # max perf: inf MB/s 971s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 971s # max perf: 156.0 MB/s 971s ok 16 /utf8/perf/utf8_to_ucs4/han 971s # End of utf8_to_ucs4 tests 971s # Start of utf8_to_ucs4-sized tests 971s # max perf: inf MB/s 971s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 971s # max perf: 67.0 MB/s 971s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 971s # max perf: 160.0 MB/s 971s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 971s # max perf: 156.0 MB/s 971s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 971s # End of utf8_to_ucs4-sized tests 971s # Start of utf8_to_ucs4_fast tests 971s # max perf: 43.0 MB/s 971s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 971s # max perf: inf MB/s 971s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 971s # max perf: 160.0 MB/s 971s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 971s # max perf: 156.0 MB/s 971s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 971s # End of utf8_to_ucs4_fast tests 971s # Start of utf8_to_ucs4_fast-sized tests 971s # max perf: inf MB/s 971s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 971s # max perf: inf MB/s 971s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 971s # max perf: 160.0 MB/s 971s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 971s # max perf: 156.0 MB/s 971s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 971s # End of utf8_to_ucs4_fast-sized tests 971s # Start of utf8_validate tests 971s # max perf: 43.0 MB/s 971s ok 29 /utf8/perf/utf8_validate/ascii 971s # max perf: inf MB/s 971s ok 30 /utf8/perf/utf8_validate/latin1 971s # max perf: 160.0 MB/s 971s ok 31 /utf8/perf/utf8_validate/cyrillic 971s # max perf: inf MB/s 971s ok 32 /utf8/perf/utf8_validate/han 971s # End of utf8_validate tests 971s # Start of utf8_validate-sized tests 971s # max perf: inf MB/s 971s ok 33 /utf8/perf/utf8_validate-sized/ascii 971s # max perf: inf MB/s 971s ok 34 /utf8/perf/utf8_validate-sized/latin1 971s # max perf: inf MB/s 971s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 971s # max perf: inf MB/s 971s ok 36 /utf8/perf/utf8_validate-sized/han 971s # End of utf8_validate-sized tests 971s # End of perf tests 971s # End of utf8 tests 971s # Running test: glib/overflow.test 971s TAP version 14 971s # random seed: R02Sc533391c7aee92477f5016caa0fc6246 971s 1..6 971s # Start of glib tests 971s # Start of checked-math tests 971s ok 1 /glib/checked-math/guint-add 971s ok 2 /glib/checked-math/guint-mul 971s ok 3 /glib/checked-math/guint64-add 971s ok 4 /glib/checked-math/guint64-mul 971s ok 5 /glib/checked-math/gsize-add 971s ok 6 /glib/checked-math/gsize-mul 971s # End of checked-math tests 971s # End of glib tests 971s ok - glib/overflow.test 971s # Running test: glib/object-info.test 971s ok - glib/object-info.test 971s # Running test: glib/environment.test 971s ok - glib/environment.test 971s # Running test: glib/unix-fd.test 971s TAP version 14 971s # random seed: R02S0f70447850e62c8b22af67177d54139f 971s 1..2 971s # Start of object-info tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_2O0LE3/object-info/find-method-using-interfaces/.dirs/runtime 971s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 971s ok 1 /object-info/find-method-using-interfaces 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_2O0LE3/object-info/find-vfunc-using-interfaces/.dirs/runtime 971s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 971s ok 2 /object-info/find-vfunc-using-interfaces 971s # End of object-info tests 971s TAP version 14 971s # random seed: R02S65fbd835c837c5210d467ac6c8de1346 971s 1..7 971s # Start of environ tests 971s # /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. 971s ok 1 /environ/listenv 971s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 971s ok 2 /environ/getenv 971s ok 3 /environ/setenv 971s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 971s ok 4 /environ/array 971s # /environ/null summary: Test getting and setting variables on a NULL envp array. 971s ok 5 /environ/null 971s # /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. 971s ok 6 /environ/case 971s # /environ/expansion summary: Test expansion of environment variable references. 971s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 971s # End of environ tests 971s ok - glib/unix-fd.test 971s TAP version 14 971s # random seed: R02Sf58d18908db569f0c229cb4599e12215 971s 1..2 971s # Start of unix-fd tests 971s ok 1 /unix-fd/fd-list 971s ok 2 /unix-fd/scm 971s # End of unix-fd tests 971s # Running test: glib/debugcontroller.test 971s TAP version 14 971s # random seed: R02S2490728a32a1123c0a2441c6a27de7ec 971s 1..3 971s # Start of debug-controller tests 971s # Start of dbus tests 971s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 971s # GLib-GIO-DEBUG: Debug output enabled 971s # GLib-GIO-DEBUG: Debug output disabled 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s ok 1 /debug-controller/dbus/basic 971s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 971s ok 2 /debug-controller/dbus/duplicate 971s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 971s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 971s # End of dbus tests 971s # End of debug-controller tests 971s ok - glib/debugcontroller.test 971s # Running test: glib/file-thumbnail.test 971s TAP version 14 971s # random seed: R02Sc1cc0e6b7ee69358dbb638930fbe4a86 971s 1..7 971s # Start of file-thumbnail tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/runtime 971s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 971s ok 1 /file-thumbnail/fail 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 971s ok 2 /file-thumbnail/size-priority 971s # Start of valid tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 971s ok 3 /file-thumbnail/valid/normal 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 971s ok 4 /file-thumbnail/valid/large 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 971s ok 5 /file-thumbnail/valid/x-large 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 971s ok 6 /file-thumbnail/valid/xx-large 971s # End of valid tests 971s # Start of unknown tests 971s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/home 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/cache 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/system-config2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/config 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/system-data2 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/data 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/state 971s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/runtime 971s # Created test thumbnail at /tmp/test_file-thumbnail_HSCLE3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 971s ok 7 /file-thumbnail/unknown/super-large 971s # End of unknown tests 971s # End of file-thumbnail tests 971s ok - glib/file-thumbnail.test 971s # Running test: glib/charset.test 971s TAP version 14 971s # random seed: R02S64c1dfa5e5170220c368dd72400d3998 971s 1..2 971s # Start of charset tests 971s # Test 0 971s # Test 1 971s # Test 2 971s # Test 3 971s ok 1 /charset/language_names_with_category 971s ok 2 /charset/language_names_with_category_async 971s # End of charset tests 971s ok - glib/charset.test 971s # Running test: glib/memory-output-stream.test 971s TAP version 14 971s # random seed: R02S1f7cb037d337206afede4c10f0c70ea0 971s 1..10 971s # Start of memory-output-stream tests 971s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 971s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 971s ok 1 /memory-output-stream/truncate 971s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 971s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 971s ok 2 /memory-output-stream/get-data-size 971s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 971s ok 3 /memory-output-stream/properties 971s ok 4 /memory-output-stream/write-bytes 971s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 971s ok 5 /memory-output-stream/write-null 971s ok 6 /memory-output-stream/writev 971s ok 7 /memory-output-stream/writev_nonblocking 971s ok 8 /memory-output-stream/steal_as_bytes 971s # Start of seek tests 971s ok 9 /memory-output-stream/seek/fixed 971s ok 10 /memory-output-stream/seek/resizable 971s # End of seek tests 971s # End of memory-output-stream tests 971s ok - glib/memory-output-stream.test 971s # Running test: glib/notify-init.test 971s ok - glib/notify-init.test 971s TAP version 14 971s # random seed: R02S0d418594a875cfd514ce2f3982cf9a29 971s 1..1 971s # Start of properties tests 971s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 971s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 971s ok 1 /properties/notify-in-init 971s # End of properties tests 971s # Running test: glib/utf8-pointer.test 971s TAP version 14 971s # random seed: R02S5115aabce716c15b6937ea71f8e3e75b 971s 1..3 971s # Start of utf8 tests 972s ok 1 /utf8/offsets 972s # slow test /utf8/offsets executed in 0.90 secs 972s ok 2 /utf8/lengths 972s ok 3 /utf8/find 972s # End of utf8 tests 972s ok - glib/utf8-pointer.test 972s # Running test: glib/contenttype.test 972s TAP version 14 972s # random seed: R02Scbd003886b88ced99a02ad57870c55b6 972s 1..14 972s # Start of contenttype tests 972s ok 1 /contenttype/guess 972s ok 2 /contenttype/guess_svg_from_data 972s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 972s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 972s ok 5 /contenttype/unknown 972s ok 6 /contenttype/subtype 972s ok 7 /contenttype/list 972s ok 8 /contenttype/executable 972s ok 9 /contenttype/description 972s ok 10 /contenttype/icon 972s ok 11 /contenttype/symbolic-icon 972s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 972s ok 12 /contenttype/tree 972s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 972s ok 13 /contenttype/tree_invalid_encoding 972s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 972s ok 14 /contenttype/test_type_is_a_special_case 972s # End of contenttype tests 972s ok - glib/contenttype.test 972s # Running test: glib/atomic-c-89.test 972s TAP version 14 972s # random seed: R02S7e84e4b6972f8a7bfbfa72585229163f 972s 1..2 972s # Start of atomic tests 972s ok 1 /atomic/types 972s ok 2 /atomic/threaded 972s # End of atomic tests 972s ok - glib/atomic-c-89.test 972s # Running test: glib/custom-dispatch.test 972s ok - glib/custom-dispatch.test 972s TAP version 14 972s # random seed: R02Sd79cd46e86c7c17e0afcad4983faac1c 972s 1..2 972s # Start of properties tests 972s # Start of custom-dispatch tests 972s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 972s ok 1 /properties/custom-dispatch/init 972s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 972s ok 2 /properties/custom-dispatch/set 972s # End of custom-dispatch tests 972s # End of properties tests 972s # Running test: glib/private.test 972s TAP version 14 972s # random seed: R02S61db58f6e3fd5b6e04e6be76877f05d7 972s 1..8 972s # Start of thread tests 972s ok 1 /thread/private1 973s ok 2 /thread/private2 973s # slow test /thread/private2 executed in 1.09 secs 973s ok 3 /thread/private3 973s ok 4 /thread/staticprivate1 973s ok 5 /thread/staticprivate2 973s ok 6 /thread/staticprivate3 973s # Executing: glib/private.test 974s ok 7 /thread/staticprivate4 974s # slow test /thread/staticprivate4 executed in 1.09 secs 974s ok - glib/private.test 974s ok 8 /thread/staticprivate5 974s # End of thread tests 974s # Running test: glib/unicode-normalize.test 974s TAP version 14 974s # random seed: R02S7c7214f5c3a8285770c2a2c0b6b899d3 974s 1..3 974s # Start of unicode tests 974s # Processing Part0 # Specific cases 974s # Processing Part1 # Character by character test 974s # Processing Part2 # Canonical Order Test 974s # Processing Part3 # PRI #29 Test 974s # Processing Part4 # Canonical closures (excluding Hangul) 974s # Processing Part5 # Chained primary composites 974s ok 1 /unicode/normalize 974s # Invalid UTF-8 vector 0 974s # Invalid UTF-8 vector 1 974s # Invalid UTF-8 vector 2 974s # Invalid UTF-8 vector 3 974s # Invalid UTF-8 vector 4 974s # Invalid UTF-8 vector 5 974s # Invalid UTF-8 vector 6 974s # Invalid UTF-8 vector 7 974s # Invalid UTF-8 vector 8 974s # Invalid UTF-8 vector 9 974s # Invalid UTF-8 vector 10 974s # Invalid UTF-8 vector 11 974s # Invalid UTF-8 vector 12 974s ok 2 /unicode/normalize-invalid 974s # Start of normalize tests 974s ok 3 /unicode/normalize/bad-length 974s # End of normalize tests 974s # End of unicode tests 974s ok - glib/unicode-normalize.test 974s # Running test: glib/mapping.test 974s TAP version 14 974s # random seed: R02S942fd4dbb1459cb246cda3967f016c4e 974s 1..3 974s # Start of mapping tests 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_XC4OE3/mapping/flags/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_XC4OE3/mapping/flags/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_XC4OE3/mapping/flags/.dirs/runtime 974s # test_mapping: ok 974s ok 1 /mapping/flags 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/system-config1:/tmp/test_mapping_XC4OE3/mapping/private/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/system-data1:/tmp/test_mapping_XC4OE3/mapping/private/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_XC4OE3/mapping/private/.dirs/runtime 974s ok 2 /mapping/private 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_XC4OE3/mapping/private-child/.dirs/runtime 974s # test_child_private: child spawned 974s # Subtest: /usr/libexec/installed-tests/glib/mapping 974s # random seed: R02S3046a9fb5d31407da04a18754d76f5fc 974s # test_child_private: received first child signal 974s # test_child_private: received parent signal 974s # Child exited with status 0 974s # test_child_private: received second child signal 974s ok 3 /mapping/private-child 974s # End of mapping tests 974s ok - glib/mapping.test 974s # Running test: glib/include.test 974s ok - glib/include.test 974s # Running test: glib/asyncqueue.test 974s TAP version 14 974s # random seed: R02S6ba5f5b0d942e61e444dc58e4a16e327 974s 1..1 974s # Start of include tests 974s ok 1 /include/rwlock 974s # End of include tests 974s TAP version 14 974s # random seed: R02Sfd9874b04e0b0935214031f5e5250019 974s 1..7 974s # Start of asyncqueue tests 974s ok 1 /asyncqueue/basics 974s ok 2 /asyncqueue/sort 974s ok 3 /asyncqueue/destroy 974s ok 4 /asyncqueue/threads 974s ok - glib/asyncqueue.test 974s ok 5 /asyncqueue/timed 974s ok 6 /asyncqueue/remove 974s ok 7 /asyncqueue/push_front 974s # End of asyncqueue tests 974s # Running test: glib/pathbuf.test 974s TAP version 14 974s # random seed: R02S1fe5bab668ede35d78ba3d1c3dc5c56b 974s 1..3 974s # Start of pathbuf tests 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UH01E3/pathbuf/init/.dirs/runtime 974s # Initializing empty path buf 974s # Initializing with empty path 974s # Initializing with full path 974s # Initializing with no path 974s # Allocating GPathBuf on the heap 974s ok 1 /pathbuf/init 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UH01E3/pathbuf/push-pop/.dirs/runtime 974s # Pushing relative path component 974s # Pushing absolute path component 974s # Popping a path component 974s # Can't pop the last element of a path buffer 974s ok 2 /pathbuf/push-pop 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_UH01E3/pathbuf/filename-extension/.dirs/runtime 974s ok 3 /pathbuf/filename-extension 974s # End of pathbuf tests 974s ok - glib/pathbuf.test 974s # Running test: glib/cxx-03.test 974s TAP version 14 974s # random seed: R02Sbb43086c311173ee3c26ad5ed0e55d00 974s 1..2 974s # Start of gtask tests 974s # 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. 974s ok 1 /gtask/name 974s # Start of name tests 974s # 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. 974s ok 2 /gtask/name/macro-wrapper 974s # End of name tests 974s # End of gtask tests 974s ok - glib/cxx-03.test 974s # Running test: glib/strvbuilder.test 974s ok - glib/strvbuilder.test 974s # Running test: glib/rand.test 974s ok - glib/rand.test 974s # Running test: glib/cxx-17.test 974s ok - glib/cxx-17.test 974s # Running test: glib/bindinggroup.test 974s ok - glib/bindinggroup.test 974s # Running test: glib/portal-support-snap.test 974s TAP version 14 974s # random seed: R02S98f2149090963045ef92d68ee2f101c7 974s 1..7 974s # Start of strvbuilder tests 974s ok 1 /strvbuilder/empty 974s ok 2 /strvbuilder/add 974s ok 3 /strvbuilder/addv 974s ok 4 /strvbuilder/add_many 974s ok 5 /strvbuilder/take 974s ok 6 /strvbuilder/ref 974s ok 7 /strvbuilder/unref_to_strv 974s # End of strvbuilder tests 974s TAP version 14 974s # random seed: R02Scb0f1313f3eaaa301f756f8fff794b9f 974s 1..2 974s # Start of rand tests 974s ok 1 /rand/test-rand 974s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 974s ok 2 /rand/double-range 974s # End of rand tests 974s TAP version 14 974s # random seed: R02S090bbb6caf709871740d11ef440a5ad5 974s 1..2 974s # Start of gtask tests 974s # 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. 974s ok 1 /gtask/name 974s # Start of name tests 974s # 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. 974s ok 2 /gtask/name/macro-wrapper 974s # End of name tests 974s # End of gtask tests 974s TAP version 14 974s # random seed: R02See5c297c40a8ecaeca29351d51993176 974s 1..11 974s # Start of GObject tests 974s # Start of BindingGroup tests 974s ok 1 /GObject/BindingGroup/invalid 974s ok 2 /GObject/BindingGroup/default 974s ok 3 /GObject/BindingGroup/bidirectional 974s ok 4 /GObject/BindingGroup/transform 974s ok 5 /GObject/BindingGroup/transform-closures 974s ok 6 /GObject/BindingGroup/same-object 974s ok 7 /GObject/BindingGroup/weak-ref-source 974s ok 8 /GObject/BindingGroup/weak-ref-target 974s ok 9 /GObject/BindingGroup/properties 974s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 974s ok 11 /GObject/BindingGroup/empty-closures 974s # End of BindingGroup tests 974s # End of GObject tests 974s TAP version 14 974s # random seed: R02S76b8a10d3bcce125315cd2e66731024c 974s 1..7 974s # Start of portal-support tests 974s # Start of snap tests 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/no-snapctl: No such file or directory 974s ok 1 /portal-support/snap/no-snapctl 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none/.dirs/runtime/snapctl 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/none: No such file or directory 974s ok 2 /portal-support/snap/none 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all/.dirs/runtime/snapctl 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/all: No such file or directory 974s ok 3 /portal-support/snap/all 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/desktop-only: No such file or directory 974s ok 4 /portal-support/snap/desktop-only 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only/.dirs/runtime/snapctl 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/network-only: No such file or directory 974s ok 5 /portal-support/snap/network-only 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 974s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/gsettings-only: No such file or directory 974s ok 6 /portal-support/snap/gsettings-only 974s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/home 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/cache 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/system-config2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/config 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/system-data2 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/data 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/state 974s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime 974s # Created snap.yaml in /tmp/test_portal-support-snap_GXY0E3/meta/snap.yaml 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 974s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 975s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 975s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 975s # Created snapctl in /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 975s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3/portal-support/snap/updates-dynamically: No such file or directory 975s ok 7 /portal-support/snap/updates-dynamically 975s # End of snap tests 975s # End of portal-support tests 975s Unable to clean up temporary directory /tmp/test_portal-support-snap_GXY0E3: No such file or directory 975s ok - glib/portal-support-snap.test 975s # Running test: glib/module-test-plugin.test 975s TAP version 14 975s # random seed: R02S0ef243d2018f889eabccea6df98f7478 975s 1..3 975s # Start of module tests 975s ok 1 /module/basics 975s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 975s ok 2 /module/invalid-libtool-archive 975s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 975s ok 3 /module/local-binding 975s # End of module tests 975s ok - glib/module-test-plugin.test 975s # Running test: glib/gdbus-export.test 975s TAP version 14 975s # random seed: R02S03ba7e35ab1285b70580fd01d0e49942 975s 1..7 975s # Start of gdbus tests 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration/.dirs/runtime 975s ok 1 /gdbus/object-registration 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures/.dirs/runtime 975s ok 2 /gdbus/object-registration-with-closures 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/object-registration-with-closures2/.dirs/runtime 975s ok 3 /gdbus/object-registration-with-closures2 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/registered-interfaces/.dirs/runtime 975s ok 4 /gdbus/registered-interfaces 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/async-properties/.dirs/runtime 975s ok 5 /gdbus/async-properties 975s # Start of threaded-unregistration tests 975s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/home 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/cache 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/system-config2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/config 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/system-data2 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/data 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/state 975s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/object/.dirs/runtime 975s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 975s # /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 976s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (1 iterations with unregistration first, 999 with call first); skipping test 976s # slow test /gdbus/threaded-unregistration/object executed in 1.10 secs 976s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/home 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/cache 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/config 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/data 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/state 976s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_RE7LE3/gdbus/threaded-unregistration/subtree/.dirs/runtime 976s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 976s # /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 977s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (1 iterations with unregistration first, 999 with call first); skipping test 977s # slow test /gdbus/threaded-unregistration/subtree executed in 1.15 secs 977s # End of threaded-unregistration tests 977s # End of gdbus tests 977s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 977s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 977s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 977s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 977s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 977s ok - glib/gdbus-export.test 977s # Running test: glib/converter-stream.test 977s TAP version 14 977s # random seed: R02S553290dce5639e9992fe64e0e552e15c 977s 1..17 977s # Start of converter tests 977s ok 1 /converter/basics 977s # End of converter tests 977s # Start of converter-input-stream tests 977s ok 2 /converter-input-stream/expander 977s ok 3 /converter-input-stream/compressor 977s # Start of truncation tests 977s ok 4 /converter-input-stream/truncation/zlib 977s ok 5 /converter-input-stream/truncation/gzip 977s ok 6 /converter-input-stream/truncation/raw 977s # End of truncation tests 977s # Start of charset tests 977s ok 7 /converter-input-stream/charset/utf8->latin1 977s ok 8 /converter-input-stream/charset/latin1->utf8 977s ok 9 /converter-input-stream/charset/fallbacks 977s # End of charset tests 977s # End of converter-input-stream tests 977s # Start of converter-output-stream tests 977s # Start of roundtrip tests 977s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 977s ok 10 /converter-output-stream/roundtrip/zlib-0 977s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 977s ok 11 /converter-output-stream/roundtrip/zlib-9 977s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 977s ok 12 /converter-output-stream/roundtrip/gzip-0 977s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 978s ok 13 /converter-output-stream/roundtrip/gzip-9 978s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 978s ok 14 /converter-output-stream/roundtrip/raw-0 978s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 978s ok 15 /converter-output-stream/roundtrip/raw-9 978s # End of roundtrip tests 978s # End of converter-output-stream tests 978s # Start of converter-stream tests 978s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 978s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc34a51b94b10 and GSocketClientAsyncConnectData 0xc34a51b8d260 978s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 978s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 978s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc34a517d3c00 for GSocketClientAsyncConnectData 0xc34a51b8d260 978s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 978s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 978s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 978s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 978s ok 16 /converter-stream/pollable 978s ok 17 /converter-stream/leftover 978s # End of converter-stream tests 978s ok - glib/converter-stream.test 978s # Running test: glib/singleton.test 978s ok - glib/singleton.test 978s TAP version 14 978s # random seed: R02S848a63992a0d566e3fd1612fd8ba4447 978s 1..2 978s # Start of gobject tests 978s # Start of singleton tests 978s ok 1 /gobject/singleton/construction 978s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 978s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 978s ok 2 /gobject/singleton/construct-property 978s # End of singleton tests 978s # End of gobject tests 978s # Running test: glib/gsubprocess.test 978s TAP version 14 978s # random seed: R02Sdd88e3d3badb71dff63acd6044e78ccc 978s 1..84 978s # Start of gsubprocess tests 978s ok 1 /gsubprocess/noop 978s ok 2 /gsubprocess/noop-all-to-null 978s ok 3 /gsubprocess/noop-no-wait 978s ok 4 /gsubprocess/noop-stdin-inherit 978s ok 5 /gsubprocess/search-path 978s ok 6 /gsubprocess/search-path-from-envp 978s # Executing: glib/gsubprocess.test 981s ok 7 /gsubprocess/signal 981s # slow test /gsubprocess/signal executed in 3.11 secs 981s ok 8 /gsubprocess/exit1 981s ok 9 /gsubprocess/echo1 981s ok 10 /gsubprocess/echo-merged 981s ok 11 /gsubprocess/cat-utf8 982s ok 12 /gsubprocess/cat-eof 982s # slow test /gsubprocess/cat-eof executed in 1.00 secs 983s # Executing: glib/gsubprocess.test 985s ok 13 /gsubprocess/multi1 985s # slow test /gsubprocess/multi1 executed in 3.01 secs 985s ok 14 /gsubprocess/communicate 988s ok 15 /gsubprocess/terminate 988s # slow test /gsubprocess/terminate executed in 2.97 secs 988s # Executing: glib/gsubprocess.test 988s ok 16 /gsubprocess/fail-initialization 988s ok 17 /gsubprocess/env 988s ok 18 /gsubprocess/cwd 988s ok 19 /gsubprocess/launcher-close 988s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 988s ok 20 /gsubprocess/stdout-file 988s ok 21 /gsubprocess/stdout-fd 988s ok 22 /gsubprocess/child-setup 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s ok 23 /gsubprocess/launcher-environment 988s # Start of exit1 tests 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 988s ok 24 /gsubprocess/exit1/cancel 988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 988s ok 25 /gsubprocess/exit1/cancel_in_cb 988s # End of exit1 tests 988s # Start of communicate tests 988s ok 26 /gsubprocess/communicate/cancelled 988s ok 27 /gsubprocess/communicate/async 988s ok 28 /gsubprocess/communicate/utf8 988s # hello world 988s ok 29 /gsubprocess/communicate/no-pipes 988s ok 30 /gsubprocess/communicate/separate-stderr 988s ok 31 /gsubprocess/communicate/stdout-only 988s # hello world 988s ok 32 /gsubprocess/communicate/stderr-only 988s ok 33 /gsubprocess/communicate/stdout-silence 988s ok 34 /gsubprocess/communicate/nothing 988s # Start of async tests 988s ok 35 /gsubprocess/communicate/async/cancelled 988s # hello world 988s ok 36 /gsubprocess/communicate/async/no-pipes 988s ok 37 /gsubprocess/communicate/async/separate-stderr 988s ok 38 /gsubprocess/communicate/async/stdout-only 988s # hello world 988s ok 39 /gsubprocess/communicate/async/stderr-only 988s ok 40 /gsubprocess/communicate/async/stdout-silence 988s # Start of cancelled tests 988s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 988s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 988s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 988s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 988s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 988s # End of cancelled tests 988s # End of async tests 988s # Start of utf8 tests 988s ok 46 /gsubprocess/communicate/utf8/cancelled 988s ok 47 /gsubprocess/communicate/utf8/async 988s # hello world 988s ok 48 /gsubprocess/communicate/utf8/no-pipes 988s ok 49 /gsubprocess/communicate/utf8/separate-stderr 988s ok 50 /gsubprocess/communicate/utf8/stdout-only 988s # hello world 988s ok 51 /gsubprocess/communicate/utf8/stderr-only 988s ok 52 /gsubprocess/communicate/utf8/stdout-silence 988s ok 53 /gsubprocess/communicate/utf8/invalid 988s # Start of async tests 988s ok 54 /gsubprocess/communicate/utf8/async/cancelled 988s # hello world 988s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 988s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 988s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 988s # hello world 988s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 988s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 988s ok 60 /gsubprocess/communicate/utf8/async/invalid 988s # Start of cancelled tests 988s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 988s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 988s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 988s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 988s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 988s # End of cancelled tests 988s # End of async tests 988s # Start of cancelled tests 988s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 988s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 988s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 988s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 988s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 988s # End of cancelled tests 988s # End of utf8 tests 988s # Start of cancelled tests 988s ok 71 /gsubprocess/communicate/cancelled/no-pipes 988s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 988s ok 73 /gsubprocess/communicate/cancelled/stdout-only 988s ok 74 /gsubprocess/communicate/cancelled/stderr-only 988s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 988s # End of cancelled tests 988s # End of communicate tests 988s # Start of env tests 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s ok 76 /gsubprocess/env/inherit 988s # End of env tests 988s # Start of pass-fd tests 988s ok 77 /gsubprocess/pass-fd/basic 988s ok 78 /gsubprocess/pass-fd/empty-child-setup 988s ok 79 /gsubprocess/pass-fd/inherit-fds 988s # End of pass-fd tests 988s # Start of fd-conflation tests 988s ok 80 /gsubprocess/fd-conflation/basic 988s ok 81 /gsubprocess/fd-conflation/empty-child-setup 988s ok 82 /gsubprocess/fd-conflation/inherit-fds 988s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 988s # End of fd-conflation tests 988s # Start of exit-status tests 988s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 988s ok 84 /gsubprocess/exit-status/trapped 988s # End of exit-status tests 988s # End of gsubprocess tests 988s TAP version 14 988s # random seed: R02S93cbb4bdc2f2326a090fd9693c39a033 988s 1..7 988s # Start of spawn tests 988s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 988s # 988s # this is spawn-test-helper from glib/tests 988s # 988s ok 1 /spawn/do-not-search 988s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 988s # 988s # this is spawn-test-helper from path-test-subdir 988s # 988s ok 2 /spawn/search-path 988s # /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. 988s # 988s # this is spawn-test-helper from path-test-subdir 988s # 988s ok 3 /spawn/search-path-from-envp 988s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 988s # 988s # this is spawn-test-helper from path-test-subdir 988s # 988s ok 4 /spawn/search-path-ambiguous 988s # 988s # this is spawn-test-helper from path-test-subdir 988s # 988s ok 5 /spawn/search-path-heap-allocation 988s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 988s # 988s # this is spawn-test-helper from glib/tests 988s # 988s ok 6 /spawn/search-path-fallback-in-environ 988s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 988s ok - glib/gsubprocess.test 988s # Running test: glib/spawn-path-search.test 988s # 988s # this is spawn-test-helper from glib/tests 988s # 988s ok 7 /spawn/search-path-fallback-in-envp 988s # End of spawn tests 988s ok - glib/spawn-path-search.test 988s # Running test: glib/repository.test 988s TAP version 14 988s # random seed: R02Sa02f7c332ca8b5f8f85c1f82c66b705b 988s 1..24 988s # Start of repository tests 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/basic/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/basic/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/basic/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/basic/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/basic/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/basic/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/basic/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/basic/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/basic/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/basic/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 988s ok 1 /repository/basic 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/info/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/info/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/info/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/info/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/info/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/info/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/info/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/info/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/info/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/info/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/info summary: Test retrieving some basic info blobs from a typelib 988s ok 2 /repository/info 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/dependencies/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/dependencies/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/dependencies/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 988s ok 3 /repository/dependencies 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/arg-info/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/arg-info/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/arg-info/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 988s ok 4 /repository/arg-info 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/callable-info/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/callable-info/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/callable-info/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 988s ok 5 /repository/callable-info 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/callback-info/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/callback-info/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/callback-info/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 988s ok 6 /repository/callback-info 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/char-types/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/char-types/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/char-types/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/char-types/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/char-types/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/char-types/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/char-types/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/char-types/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/char-types/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/char-types/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 988s ok 7 /repository/char-types 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/constructor-return-type/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 988s ok 8 /repository/constructor-return-type 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/enum-info-c-identifier/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 988s ok 9 /repository/enum-info-c-identifier 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/enum-info-static-methods/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/enum-info-static-methods summary: Test an enum with methods 988s ok 10 /repository/enum-info-static-methods 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/error-quark/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/error-quark/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/error-quark/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/error-quark summary: Test finding an error quark by error domain 988s ok 11 /repository/error-quark 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/flags-info-c-identifier/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 988s ok 12 /repository/flags-info-c-identifier 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/fundamental-ref-func/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 988s ok 13 /repository/fundamental-ref-func 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/instance-method-ownership-transfer/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 988s ok 14 /repository/instance-method-ownership-transfer 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/object-gtype-interfaces/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 988s ok 15 /repository/object-gtype-interfaces 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/signal-info-with-array-length-arg/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 988s ok 16 /repository/signal-info-with-array-length-arg 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/type-info-name/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/type-info-name/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/type-info-name/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 988s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 988s ok 17 /repository/type-info-name 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/vfunc-info-with-no-invoker/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 988s ok 18 /repository/vfunc-info-with-no-invoker 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 988s ok 19 /repository/vfunc-info-with-invoker-on-interface 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 988s ok 20 /repository/vfunc-info-with-invoker-on-object 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/config 988s ok - glib/repository.test 988s # Running test: glib/gapplication.test 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/find-by-gtype/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/find-by-gtype summary: Test finding a GType 988s ok 21 /repository/find-by-gtype 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/loaded-namespaces/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/loaded-namespaces summary: Test listing loaded namespaces 988s ok 22 /repository/loaded-namespaces 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/dup_default/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/dup_default/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/dup_default/.dirs/runtime 988s ok 23 /repository/dup_default 988s # Start of base-info tests 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_ERUME3/repository/base-info/clear/.dirs/runtime 988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 988s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 988s ok 24 /repository/base-info/clear 988s # End of base-info tests 988s # End of repository tests 988s TAP version 14 988s # random seed: R02S7a1a1a4379221d6834305555dd331389 988s 1..25 988s # Start of gapplication tests 988s ok 1 /gapplication/no-dbus 988s ok 2 /gapplication/no-appid 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 3 /gapplication/properties 988s ok 4 /gapplication/app-id 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 5 /gapplication/quit 988s ok 6 /gapplication/registered 988s ok 7 /gapplication/local-actions 988s ok 8 /gapplication/local-command-line 988s ok 9 /gapplication/resource-path 988s ok 10 /gapplication/test-help 988s ok 11 /gapplication/command-line-done 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 12 /gapplication/test-busy 988s ok 13 /gapplication/test-handle-local-options1 988s ok 14 /gapplication/test-handle-local-options2 988s ok 15 /gapplication/test-handle-local-options3 988s ok 16 /gapplication/api 988s ok 17 /gapplication/version 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # launching subprocess 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 18 /gapplication/replace 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # launching subprocess 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 19 /gapplication/no-replace 989s # slow test /gapplication/no-replace executed in 0.51 secs 989s # Start of command-line tests 989s # /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 989s ok 20 /gapplication/command-line/arguments 989s # End of command-line tests 989s # Start of dbus tests 989s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 989s # Message 0 989s # Message 1 989s # Message 2 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 21 /gapplication/dbus/activate 989s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 989s # Message 0 989s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 989s # Message 1 989s # Message 2 989s # Message 3 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 22 /gapplication/dbus/open 989s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 989s # Message 0 989s # Message 1 989s # Message 2 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 23 /gapplication/dbus/command-line 989s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 24 /gapplication/dbus/command-line-done 989s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 989s # Message 0 989s # Message 1 989s # Message 2 989s # Message 3 989s # Message 4 989s # Message 5 989s # Message 6 989s # Message 7 989s # Message 8 989s # Message 9 989s # Message 10 989s # Message 11 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 989s ok 25 /gapplication/dbus/activate-action 989s # End of dbus tests 989s # End of gapplication tests 989s ok - glib/gapplication.test 989s # Running test: glib/accumulator.test 989s TAP version 14 989s # random seed: R02S6e8d5eaff67002ef2bb94f5c8fe5e933 989s 1..1 989s # Start of gobject tests 989s ok 1 /gobject/accumulator 989s # End of gobject tests 989s ok - glib/accumulator.test 989s # Running test: glib/memory-settings-backend.test 989s TAP version 14 989s # random seed: R02S587d2aa4a4b4dff12bf265895b24b0b6 989s 1..1 989s # Start of memory-settings-backend tests 989s ok 1 /memory-settings-backend/extension-point-registered 989s # End of memory-settings-backend tests 989s ok - glib/memory-settings-backend.test 989s # Running test: glib/hmac.test 989s TAP version 14 989s # random seed: R02Sf565ed30ea59c6692dcd41354b74932d 989s 1..37 989s # Start of hmac tests 989s ok 1 /hmac/sha1-1 989s ok 2 /hmac/sha1-2 989s ok 3 /hmac/sha1-3 989s ok 4 /hmac/sha1-4 989s ok 5 /hmac/sha1-5 989s ok 6 /hmac/sha1-6 989s ok 7 /hmac/sha1-7 989s ok 8 /hmac/sha256-1 989s ok 9 /hmac/sha256-2 989s ok 10 /hmac/sha256-3 989s ok 11 /hmac/sha256-4 989s ok 12 /hmac/sha256-5 989s ok 13 /hmac/sha256-6 989s ok 14 /hmac/sha384-1 989s ok 15 /hmac/sha384-2 989s ok 16 /hmac/sha384-3 989s ok 17 /hmac/sha384-4 989s ok 18 /hmac/sha384-5 989s ok 19 /hmac/sha384-6 989s ok 20 /hmac/sha512-1 989s ok 21 /hmac/sha512-2 989s ok 22 /hmac/sha512-3 989s ok 23 /hmac/sha512-4 989s ok 24 /hmac/sha512-5 989s ok 25 /hmac/sha512-6 989s ok 26 /hmac/md5-1 989s ok 27 /hmac/md5-2 989s ok 28 /hmac/md5-3 989s ok 29 /hmac/md5-4 989s ok 30 /hmac/md5-5 989s ok 31 /hmac/md5-6 989s ok 32 /hmac/md5-7 989s ok 33 /hmac/ref-unref 989s ok 34 /hmac/copy 989s ok 35 /hmac/for-data 989s ok 36 /hmac/for-string 989s ok 37 /hmac/for-bytes 989s # End of hmac tests 989s ok - glib/hmac.test 989s # Running test: glib/signalgroup.test 989s TAP version 14 989s # random seed: R02S3f0259273e2fb287e8eb2a55b166062c 989s 1..9 989s # Start of GObject tests 989s # Start of SignalGroup tests 989s ok 1 /GObject/SignalGroup/invalid 989s ok 2 /GObject/SignalGroup/simple 989s ok 3 /GObject/SignalGroup/changing-target 989s ok 4 /GObject/SignalGroup/blocking 989s ok 5 /GObject/SignalGroup/weak-ref-target 989s ok 6 /GObject/SignalGroup/connect-object 989s ok 7 /GObject/SignalGroup/signal-parsing 989s ok 8 /GObject/SignalGroup/properties 989s ok 9 /GObject/SignalGroup/interface 989s # Start of signal-parsing tests 989s # End of signal-parsing tests 989s # End of SignalGroup tests 989s # End of GObject tests 989s ok - glib/signalgroup.test 989s # Running test: glib/sort.test 989s TAP version 14 989s # random seed: R02S0a3e8abf575a5c21e0e820d2ecb0e093 989s 1..5 989s # Start of sort tests 989s ok 1 /sort/basic 989s ok 2 /sort/zero-elements 989s ok 3 /sort/stable 989s ok 4 /sort/big 989s ok 5 /sort/deprecated 989s # End of sort tests 989s ok - glib/sort.test 989s # Running test: glib/macros-c-99.test 989s TAP version 14 989s # random seed: R02Sb06ffe4541dbd376f9c6a1f057835026 989s 1..4 989s # Start of C tests 989s ok 1 /C/standard-99 989s # End of C tests 989s # Start of alignof tests 989s ok 2 /alignof/fallback 989s # End of alignof tests 989s # Start of assert tests 989s ok 3 /assert/static 989s # End of assert tests 989s # Start of struct tests 989s ok 4 /struct/sizeof_member 989s # End of struct tests 989s ok - glib/macros-c-99.test 989s # Running test: glib/filter-streams.test 989s TAP version 14 989s # random seed: R02S3e548ab35e52581986a0e93dc27e6f24 989s 1..4 989s # Start of filter-stream tests 989s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 989s ok 1 /filter-stream/input 989s ok 2 /filter-stream/output 989s ok 3 /filter-stream/async-input 989s ok 4 /filter-stream/async-output 989s # End of filter-stream tests 989s ok - glib/filter-streams.test 989s # Running test: glib/network-monitor-race.test 989s TAP version 14 989s # random seed: R02Sdd9b8f21556561fb02e267910d25dbb5 989s 1..1 989s # Start of network-monitor tests 989s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 991s ok 1 /network-monitor/create-in-thread 991s # slow test /network-monitor/create-in-thread executed in 2.22 secs 991s # End of network-monitor tests 991s ok - glib/network-monitor-race.test 991s # Running test: glib/slice.test 991s TAP version 14 991s # random seed: R02S64bf44aeaeeada1a071a737eb63ec4cb 991s 1..3 991s # Start of slice tests 991s ok 1 /slice/copy 991s ok 2 /slice/chain 991s ok 3 /slice/allocate 991s # End of slice tests 991s ok - glib/slice.test 991s # Running test: glib/regex.test 991s TAP version 14 991s # random seed: R02S68900202433f903bef178b06e6f05ff1 991s 1..848 991s # Start of regex tests 991s ok 1 /regex/properties 991s ok 2 /regex/class 991s ok 3 /regex/lookahead 991s ok 4 /regex/lookbehind 991s ok 5 /regex/subpattern 991s ok 6 /regex/condition 991s ok 7 /regex/recursion 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 991s ok 8 /regex/multiline 991s ok 9 /regex/explicit-crlf 991s ok 10 /regex/max-lookbehind 991s ok 11 /regex/compile-errors 991s ok 12 /regex/jit-unsupported-matching 991s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 991s ok 13 /regex/unmatched-named-subpattern 991s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 991s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 991s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 991s ok 14 /regex/compiled-regex-after-jit-failure 991s # Start of new tests 991s ok 15 /regex/new/1 991s ok 16 /regex/new/2 991s ok 17 /regex/new/3 991s ok 18 /regex/new/4 991s ok 19 /regex/new/5 991s ok 20 /regex/new/6 991s ok 21 /regex/new/7 991s ok 22 /regex/new/8 991s ok 23 /regex/new/9 991s ok 24 /regex/new/10 991s ok 25 /regex/new/11 991s ok 26 /regex/new/12 991s ok 27 /regex/new/13 991s ok 28 /regex/new/14 991s ok 29 /regex/new/15 991s ok 30 /regex/new/16 991s ok 31 /regex/new/17 991s ok 32 /regex/new/18 991s ok 33 /regex/new/19 991s ok 34 /regex/new/71 991s ok 35 /regex/new/80 991s ok 36 /regex/new/82 991s # End of new tests 991s # Start of new-check-flags tests 991s ok 37 /regex/new-check-flags/20 991s ok 38 /regex/new-check-flags/21 991s ok 39 /regex/new-check-flags/22 991s ok 40 /regex/new-check-flags/23 991s ok 41 /regex/new-check-flags/24 991s ok 42 /regex/new-check-flags/25 991s ok 43 /regex/new-check-flags/26 991s ok 44 /regex/new-check-flags/27 991s ok 45 /regex/new-check-flags/28 991s ok 46 /regex/new-check-flags/29 991s ok 47 /regex/new-check-flags/30 991s ok 48 /regex/new-check-flags/31 991s ok 49 /regex/new-check-flags/32 991s ok 50 /regex/new-check-flags/33 991s ok 51 /regex/new-check-flags/34 991s ok 52 /regex/new-check-flags/35 991s ok 53 /regex/new-check-flags/36 991s # End of new-check-flags tests 991s # Start of new-fail tests 991s ok 54 /regex/new-fail/37 991s ok 55 /regex/new-fail/38 991s ok 56 /regex/new-fail/39 991s ok 57 /regex/new-fail/40 991s ok 58 /regex/new-fail/41 991s ok 59 /regex/new-fail/42 991s ok 60 /regex/new-fail/43 991s ok 61 /regex/new-fail/44 991s ok 62 /regex/new-fail/45 991s ok 63 /regex/new-fail/46 991s ok 64 /regex/new-fail/47 991s ok 65 /regex/new-fail/48 991s ok 66 /regex/new-fail/49 991s ok 67 /regex/new-fail/50 991s ok 68 /regex/new-fail/51 991s ok 69 /regex/new-fail/52 991s ok 70 /regex/new-fail/53 991s ok 71 /regex/new-fail/54 991s ok 72 /regex/new-fail/55 991s ok 73 /regex/new-fail/56 991s ok 74 /regex/new-fail/57 991s ok 75 /regex/new-fail/58 991s ok 76 /regex/new-fail/59 991s ok 77 /regex/new-fail/60 991s ok 78 /regex/new-fail/61 991s ok 79 /regex/new-fail/62 991s ok 80 /regex/new-fail/63 991s ok 81 /regex/new-fail/64 991s ok 82 /regex/new-fail/65 991s ok 83 /regex/new-fail/66 991s ok 84 /regex/new-fail/67 991s ok 85 /regex/new-fail/68 991s ok 86 /regex/new-fail/69 991s ok 87 /regex/new-fail/70 991s ok 88 /regex/new-fail/72 991s ok 89 /regex/new-fail/73 991s ok 90 /regex/new-fail/74 991s ok 91 /regex/new-fail/75 991s ok 92 /regex/new-fail/76 991s ok 93 /regex/new-fail/77 991s ok 94 /regex/new-fail/78 991s ok 95 /regex/new-fail/79 991s ok 96 /regex/new-fail/81 991s ok 97 /regex/new-fail/83 991s ok 98 /regex/new-fail/84 991s ok 99 /regex/new-fail/85 991s ok 100 /regex/new-fail/86 991s ok 101 /regex/new-fail/87 991s ok 102 /regex/new-fail/88 991s ok 103 /regex/new-fail/89 991s ok 104 /regex/new-fail/90 991s ok 105 /regex/new-fail/91 991s # End of new-fail tests 991s # Start of match-simple tests 991s ok 106 /regex/match-simple/92 991s ok 107 /regex/match-simple/93 991s ok 108 /regex/match-simple/94 991s ok 109 /regex/match-simple/95 991s ok 110 /regex/match-simple/96 991s ok 111 /regex/match-simple/97 991s ok 112 /regex/match-simple/98 991s ok 113 /regex/match-simple/99 991s ok 114 /regex/match-simple/100 991s ok 115 /regex/match-simple/101 991s ok 116 /regex/match-simple/102 991s ok 117 /regex/match-simple/103 991s ok 118 /regex/match-simple/104 991s ok 119 /regex/match-simple/105 991s ok 120 /regex/match-simple/106 991s ok 121 /regex/match-simple/107 991s ok 122 /regex/match-simple/108 991s ok 123 /regex/match-simple/109 991s ok 124 /regex/match-simple/110 991s ok 125 /regex/match-simple/111 991s ok 126 /regex/match-simple/112 991s ok 127 /regex/match-simple/113 991s ok 128 /regex/match-simple/114 991s ok 129 /regex/match-simple/115 991s ok 130 /regex/match-simple/116 991s ok 131 /regex/match-simple/117 991s ok 132 /regex/match-simple/118 991s ok 133 /regex/match-simple/119 991s ok 134 /regex/match-simple/120 991s ok 135 /regex/match-simple/121 991s ok 136 /regex/match-simple/122 991s ok 137 /regex/match-simple/123 991s ok 138 /regex/match-simple/124 991s ok 139 /regex/match-simple/125 991s ok 140 /regex/match-simple/126 991s ok 141 /regex/match-simple/127 991s ok 142 /regex/match-simple/128 991s ok 143 /regex/match-simple/129 991s ok 144 /regex/match-simple/130 991s ok 145 /regex/match-simple/131 991s ok 146 /regex/match-simple/132 991s ok 147 /regex/match-simple/133 991s ok 148 /regex/match-simple/134 991s ok 149 /regex/match-simple/135 991s ok 150 /regex/match-simple/136 991s ok 151 /regex/match-simple/137 991s ok 152 /regex/match-simple/138 991s ok 153 /regex/match-simple/139 991s ok 154 /regex/match-simple/140 991s ok 155 /regex/match-simple/141 991s ok 156 /regex/match-simple/142 991s ok 157 /regex/match-simple/143 991s ok 158 /regex/match-simple/144 991s ok 159 /regex/match-simple/145 991s ok 160 /regex/match-simple/146 991s ok 161 /regex/match-simple/147 991s ok 162 /regex/match-simple/148 991s ok 163 /regex/match-simple/149 991s ok 164 /regex/match-simple/150 991s ok 165 /regex/match-simple/151 991s ok 166 /regex/match-simple/152 991s ok 167 /regex/match-simple/153 991s ok 168 /regex/match-simple/154 991s ok 169 /regex/match-simple/155 991s ok 170 /regex/match-simple/156 991s ok 171 /regex/match-simple/157 991s ok 172 /regex/match-simple/158 991s ok 173 /regex/match-simple/159 991s ok 174 /regex/match-simple/160 991s ok 175 /regex/match-simple/161 991s ok 176 /regex/match-simple/162 991s ok 177 /regex/match-simple/163 991s ok 178 /regex/match-simple/164 991s # End of match-simple tests 991s # Start of match-simple-optimized tests 991s ok 179 /regex/match-simple-optimized/92 991s ok 180 /regex/match-simple-optimized/93 991s ok 181 /regex/match-simple-optimized/94 991s ok 182 /regex/match-simple-optimized/95 991s ok 183 /regex/match-simple-optimized/96 991s ok 184 /regex/match-simple-optimized/97 991s ok 185 /regex/match-simple-optimized/98 991s ok 186 /regex/match-simple-optimized/99 991s ok 187 /regex/match-simple-optimized/100 991s ok 188 /regex/match-simple-optimized/101 991s ok 189 /regex/match-simple-optimized/102 991s ok 190 /regex/match-simple-optimized/103 991s ok 191 /regex/match-simple-optimized/104 991s ok 192 /regex/match-simple-optimized/105 991s ok 193 /regex/match-simple-optimized/106 991s ok 194 /regex/match-simple-optimized/107 991s ok 195 /regex/match-simple-optimized/108 991s ok 196 /regex/match-simple-optimized/109 991s ok 197 /regex/match-simple-optimized/110 991s ok 198 /regex/match-simple-optimized/111 991s ok 199 /regex/match-simple-optimized/112 991s ok 200 /regex/match-simple-optimized/113 991s ok 201 /regex/match-simple-optimized/114 991s ok 202 /regex/match-simple-optimized/115 991s ok 203 /regex/match-simple-optimized/116 991s ok 204 /regex/match-simple-optimized/117 991s ok 205 /regex/match-simple-optimized/118 991s ok 206 /regex/match-simple-optimized/119 991s ok 207 /regex/match-simple-optimized/120 991s ok 208 /regex/match-simple-optimized/121 991s ok 209 /regex/match-simple-optimized/122 991s ok 210 /regex/match-simple-optimized/123 991s ok 211 /regex/match-simple-optimized/124 991s ok 212 /regex/match-simple-optimized/125 991s ok 213 /regex/match-simple-optimized/126 991s ok 214 /regex/match-simple-optimized/127 991s ok 215 /regex/match-simple-optimized/128 991s ok 216 /regex/match-simple-optimized/129 991s ok 217 /regex/match-simple-optimized/130 991s ok 218 /regex/match-simple-optimized/131 991s ok 219 /regex/match-simple-optimized/132 991s ok 220 /regex/match-simple-optimized/133 991s ok 221 /regex/match-simple-optimized/134 991s ok 222 /regex/match-simple-optimized/135 991s ok 223 /regex/match-simple-optimized/136 991s ok 224 /regex/match-simple-optimized/137 991s ok 225 /regex/match-simple-optimized/138 991s ok 226 /regex/match-simple-optimized/139 991s ok 227 /regex/match-simple-optimized/140 991s ok 228 /regex/match-simple-optimized/141 991s ok 229 /regex/match-simple-optimized/142 991s ok 230 /regex/match-simple-optimized/143 991s ok 231 /regex/match-simple-optimized/144 991s ok 232 /regex/match-simple-optimized/145 991s ok 233 /regex/match-simple-optimized/146 991s ok 234 /regex/match-simple-optimized/147 991s ok 235 /regex/match-simple-optimized/148 991s ok 236 /regex/match-simple-optimized/149 991s ok 237 /regex/match-simple-optimized/150 991s ok 238 /regex/match-simple-optimized/151 991s ok 239 /regex/match-simple-optimized/152 991s ok 240 /regex/match-simple-optimized/153 991s ok 241 /regex/match-simple-optimized/154 991s ok 242 /regex/match-simple-optimized/155 991s ok 243 /regex/match-simple-optimized/156 991s ok 244 /regex/match-simple-optimized/157 991s ok 245 /regex/match-simple-optimized/158 991s ok 246 /regex/match-simple-optimized/159 991s ok 247 /regex/match-simple-optimized/160 991s ok 248 /regex/match-simple-optimized/161 991s ok 249 /regex/match-simple-optimized/162 991s ok 250 /regex/match-simple-optimized/163 991s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 991s ok 251 /regex/match-simple-optimized/164 991s # End of match-simple-optimized tests 991s # Start of match tests 991s ok 252 /regex/match/165 991s ok 253 /regex/match/166 991s ok 254 /regex/match/167 991s ok 255 /regex/match/168 991s ok 256 /regex/match/169 991s ok 257 /regex/match/170 991s ok 258 /regex/match/171 991s ok 259 /regex/match/172 991s ok 260 /regex/match/173 991s ok 261 /regex/match/174 991s ok 262 /regex/match/175 991s ok 263 /regex/match/176 991s ok 264 /regex/match/177 991s ok 265 /regex/match/178 991s ok 266 /regex/match/179 991s ok 267 /regex/match/180 991s ok 268 /regex/match/181 991s ok 269 /regex/match/182 991s ok 270 /regex/match/183 991s ok 271 /regex/match/184 991s ok 272 /regex/match/185 991s ok 273 /regex/match/186 991s ok 274 /regex/match/187 991s ok 275 /regex/match/188 991s ok 276 /regex/match/189 991s ok 277 /regex/match/190 991s ok 278 /regex/match/191 991s ok 279 /regex/match/192 991s ok 280 /regex/match/193 991s ok 281 /regex/match/194 991s ok 282 /regex/match/195 991s ok 283 /regex/match/196 991s ok 284 /regex/match/197 991s ok 285 /regex/match/198 991s ok 286 /regex/match/199 991s ok 287 /regex/match/200 991s ok 288 /regex/match/201 991s ok 289 /regex/match/202 991s ok 290 /regex/match/203 991s ok 291 /regex/match/204 991s ok 292 /regex/match/205 991s ok 293 /regex/match/206 991s ok 294 /regex/match/207 991s ok 295 /regex/match/208 991s ok 296 /regex/match/209 991s ok 297 /regex/match/210 991s ok 298 /regex/match/211 991s ok 299 /regex/match/212 991s ok 300 /regex/match/213 991s ok 301 /regex/match/214 991s ok 302 /regex/match/215 991s ok 303 /regex/match/216 991s ok 304 /regex/match/217 991s ok 305 /regex/match/218 991s ok 306 /regex/match/219 991s ok 307 /regex/match/220 991s ok 308 /regex/match/221 991s ok 309 /regex/match/222 991s ok 310 /regex/match/223 991s ok 311 /regex/match/224 991s ok 312 /regex/match/225 991s ok 313 /regex/match/226 991s ok 314 /regex/match/227 991s ok 315 /regex/match/228 991s ok 316 /regex/match/229 991s ok 317 /regex/match/230 991s ok 318 /regex/match/231 991s ok 319 /regex/match/232 991s ok 320 /regex/match/233 991s ok 321 /regex/match/234 991s ok 322 /regex/match/235 991s ok 323 /regex/match/236 991s ok 324 /regex/match/237 991s ok 325 /regex/match/238 991s ok 326 /regex/match/239 991s ok 327 /regex/match/240 991s ok 328 /regex/match/241 991s ok 329 /regex/match/242 991s ok 330 /regex/match/243 991s ok 331 /regex/match/244 991s ok 332 /regex/match/245 991s ok 333 /regex/match/246 991s ok 334 /regex/match/partial281 991s ok 335 /regex/match/partial282 991s ok 336 /regex/match/partial283 991s ok 337 /regex/match/partial284 991s ok 338 /regex/match/partial285 991s ok 339 /regex/match/partial286 991s ok 340 /regex/match/partial287 991s ok 341 /regex/match/partial288 991s ok 342 /regex/match/partial289 991s ok 343 /regex/match/partial290 991s ok 344 /regex/match/partial291 991s ok 345 /regex/match/partial292 991s ok 346 /regex/match/partial293 991s ok 347 /regex/match/partial294 991s ok 348 /regex/match/partial295 991s ok 349 /regex/match/partial296 991s ok 350 /regex/match/partial297 991s ok 351 /regex/match/partial298 991s ok 352 /regex/match/partial299 991s ok 353 /regex/match/partial300 991s ok 354 /regex/match/partial301 991s ok 355 /regex/match/partial302 991s # Start of next0 tests 991s ok 356 /regex/match/next0/247 991s ok 357 /regex/match/next0/248 991s ok 358 /regex/match/next0/249 991s ok 359 /regex/match/next0/250 991s # End of next0 tests 991s # Start of next1 tests 991s ok 360 /regex/match/next1/251 991s ok 361 /regex/match/next1/252 991s ok 362 /regex/match/next1/253 991s ok 363 /regex/match/next1/254 991s ok 364 /regex/match/next1/255 991s # End of next1 tests 991s # Start of next2 tests 991s ok 365 /regex/match/next2/256 991s ok 366 /regex/match/next2/257 991s ok 367 /regex/match/next2/258 991s ok 368 /regex/match/next2/259 991s ok 369 /regex/match/next2/260 991s ok 370 /regex/match/next2/261 991s ok 371 /regex/match/next2/262 991s ok 372 /regex/match/next2/263 991s # End of next2 tests 991s # Start of next3 tests 991s ok 373 /regex/match/next3/264 991s ok 374 /regex/match/next3/265 991s ok 375 /regex/match/next3/266 991s ok 376 /regex/match/next3/267 991s ok 377 /regex/match/next3/268 991s ok 378 /regex/match/next3/269 991s # End of next3 tests 991s # Start of next4 tests 991s ok 379 /regex/match/next4/270 991s # End of next4 tests 991s # Start of count tests 991s ok 380 /regex/match/count/271 991s ok 381 /regex/match/count/272 991s ok 382 /regex/match/count/273 991s ok 383 /regex/match/count/274 991s ok 384 /regex/match/count/275 991s ok 385 /regex/match/count/276 991s ok 386 /regex/match/count/277 991s ok 387 /regex/match/count/278 991s ok 388 /regex/match/count/279 991s ok 389 /regex/match/count/280 991s # End of count tests 991s # Start of count-optimized tests 991s ok 390 /regex/match/count-optimized/271 991s ok 391 /regex/match/count-optimized/272 991s ok 392 /regex/match/count-optimized/273 991s ok 393 /regex/match/count-optimized/274 991s ok 394 /regex/match/count-optimized/275 991s ok 395 /regex/match/count-optimized/276 991s ok 396 /regex/match/count-optimized/277 991s ok 397 /regex/match/count-optimized/278 991s ok 398 /regex/match/count-optimized/279 991s ok 399 /regex/match/count-optimized/280 991s # End of count-optimized tests 991s # Start of partial-optimized tests 991s ok 400 /regex/match/partial-optimized/281 991s ok 401 /regex/match/partial-optimized/282 991s ok 402 /regex/match/partial-optimized/283 991s ok 403 /regex/match/partial-optimized/284 991s ok 404 /regex/match/partial-optimized/285 991s ok 405 /regex/match/partial-optimized/286 991s ok 406 /regex/match/partial-optimized/287 991s ok 407 /regex/match/partial-optimized/288 991s ok 408 /regex/match/partial-optimized/289 991s ok 409 /regex/match/partial-optimized/290 991s ok 410 /regex/match/partial-optimized/291 991s ok 411 /regex/match/partial-optimized/292 991s ok 412 /regex/match/partial-optimized/293 991s ok 413 /regex/match/partial-optimized/294 991s ok 414 /regex/match/partial-optimized/295 991s ok 415 /regex/match/partial-optimized/296 991s ok 416 /regex/match/partial-optimized/297 991s ok 417 /regex/match/partial-optimized/298 991s ok 418 /regex/match/partial-optimized/299 991s ok 419 /regex/match/partial-optimized/300 991s ok 420 /regex/match/partial-optimized/301 991s ok 421 /regex/match/partial-optimized/302 991s # End of partial-optimized tests 991s # Start of subpattern tests 991s ok 422 /regex/match/subpattern/303 991s ok 423 /regex/match/subpattern/304 991s ok 424 /regex/match/subpattern/305 991s ok 425 /regex/match/subpattern/306 991s ok 426 /regex/match/subpattern/307 991s ok 427 /regex/match/subpattern/308 991s ok 428 /regex/match/subpattern/309 991s ok 429 /regex/match/subpattern/310 991s ok 430 /regex/match/subpattern/311 991s ok 431 /regex/match/subpattern/312 991s ok 432 /regex/match/subpattern/313 991s ok 433 /regex/match/subpattern/314 991s ok 434 /regex/match/subpattern/315 991s # Start of named tests 991s # Start of dupnames tests 991s ok 435 /regex/match/subpattern/named/dupnames/325 991s ok 436 /regex/match/subpattern/named/dupnames/326 991s ok 437 /regex/match/subpattern/named/dupnames/327 991s ok 438 /regex/match/subpattern/named/dupnames/328 991s ok 439 /regex/match/subpattern/named/dupnames/329 991s # End of dupnames tests 991s # End of named tests 991s # End of subpattern tests 991s # Start of subpattern-optimized tests 991s ok 440 /regex/match/subpattern-optimized/303 991s ok 441 /regex/match/subpattern-optimized/304 991s ok 442 /regex/match/subpattern-optimized/305 991s ok 443 /regex/match/subpattern-optimized/306 991s ok 444 /regex/match/subpattern-optimized/307 991s ok 445 /regex/match/subpattern-optimized/308 991s ok 446 /regex/match/subpattern-optimized/309 991s ok 447 /regex/match/subpattern-optimized/310 991s ok 448 /regex/match/subpattern-optimized/311 991s ok 449 /regex/match/subpattern-optimized/312 991s ok 450 /regex/match/subpattern-optimized/313 991s ok 451 /regex/match/subpattern-optimized/314 991s ok 452 /regex/match/subpattern-optimized/315 991s # End of subpattern-optimized tests 991s # Start of named tests 991s # Start of subpattern tests 991s ok 453 /regex/match/named/subpattern/316 991s ok 454 /regex/match/named/subpattern/317 991s ok 455 /regex/match/named/subpattern/318 991s ok 456 /regex/match/named/subpattern/319 991s ok 457 /regex/match/named/subpattern/320 991s ok 458 /regex/match/named/subpattern/321 991s ok 459 /regex/match/named/subpattern/322 991s ok 460 /regex/match/named/subpattern/323 991s ok 461 /regex/match/named/subpattern/324 991s ok 462 /regex/match/named/subpattern/330 991s ok 463 /regex/match/named/subpattern/331 991s ok 464 /regex/match/named/subpattern/332 991s ok 465 /regex/match/named/subpattern/333 991s ok 466 /regex/match/named/subpattern/334 991s # End of subpattern tests 991s # End of named tests 991s # End of match tests 991s # Start of match-optimized tests 991s ok 467 /regex/match-optimized/165 991s ok 468 /regex/match-optimized/166 991s ok 469 /regex/match-optimized/167 991s ok 470 /regex/match-optimized/168 991s ok 471 /regex/match-optimized/169 991s ok 472 /regex/match-optimized/170 991s ok 473 /regex/match-optimized/171 991s ok 474 /regex/match-optimized/172 991s ok 475 /regex/match-optimized/173 991s ok 476 /regex/match-optimized/174 991s ok 477 /regex/match-optimized/175 991s ok 478 /regex/match-optimized/176 991s ok 479 /regex/match-optimized/177 991s ok 480 /regex/match-optimized/178 991s ok 481 /regex/match-optimized/179 991s ok 482 /regex/match-optimized/180 991s ok 483 /regex/match-optimized/181 991s ok 484 /regex/match-optimized/182 991s ok 485 /regex/match-optimized/183 991s ok 486 /regex/match-optimized/184 991s ok 487 /regex/match-optimized/185 991s ok 488 /regex/match-optimized/186 991s ok 489 /regex/match-optimized/187 991s ok 490 /regex/match-optimized/188 991s ok 491 /regex/match-optimized/189 991s ok 492 /regex/match-optimized/190 991s ok 493 /regex/match-optimized/191 991s ok 494 /regex/match-optimized/192 991s ok 495 /regex/match-optimized/193 991s ok 496 /regex/match-optimized/194 991s ok 497 /regex/match-optimized/195 991s ok 498 /regex/match-optimized/196 991s ok 499 /regex/match-optimized/197 991s ok 500 /regex/match-optimized/198 991s ok 501 /regex/match-optimized/199 991s ok 502 /regex/match-optimized/200 991s ok 503 /regex/match-optimized/201 991s ok 504 /regex/match-optimized/202 991s ok 505 /regex/match-optimized/203 991s ok 506 /regex/match-optimized/204 991s ok 507 /regex/match-optimized/205 991s ok 508 /regex/match-optimized/206 991s ok 509 /regex/match-optimized/207 991s ok 510 /regex/match-optimized/208 991s ok 511 /regex/match-optimized/209 991s ok 512 /regex/match-optimized/210 991s ok 513 /regex/match-optimized/211 991s ok 514 /regex/match-optimized/212 991s ok 515 /regex/match-optimized/213 991s ok 516 /regex/match-optimized/214 991s ok 517 /regex/match-optimized/215 991s ok 518 /regex/match-optimized/216 991s ok 519 /regex/match-optimized/217 991s ok 520 /regex/match-optimized/218 991s ok 521 /regex/match-optimized/219 991s ok 522 /regex/match-optimized/220 991s ok 523 /regex/match-optimized/221 991s ok 524 /regex/match-optimized/222 991s ok 525 /regex/match-optimized/223 991s ok 526 /regex/match-optimized/224 991s ok 527 /regex/match-optimized/225 991s ok 528 /regex/match-optimized/226 991s ok 529 /regex/match-optimized/227 991s ok 530 /regex/match-optimized/228 991s ok 531 /regex/match-optimized/229 991s ok 532 /regex/match-optimized/230 991s ok 533 /regex/match-optimized/231 991s ok 534 /regex/match-optimized/232 991s ok 535 /regex/match-optimized/233 991s ok 536 /regex/match-optimized/234 991s ok 537 /regex/match-optimized/235 991s ok 538 /regex/match-optimized/236 991s ok 539 /regex/match-optimized/237 991s ok 540 /regex/match-optimized/238 991s ok 541 /regex/match-optimized/239 991s ok 542 /regex/match-optimized/240 991s ok 543 /regex/match-optimized/241 991s ok 544 /regex/match-optimized/242 991s ok 545 /regex/match-optimized/243 991s ok 546 /regex/match-optimized/244 991s ok 547 /regex/match-optimized/245 991s ok 548 /regex/match-optimized/246 991s # End of match-optimized tests 991s # Start of fetch-all0 tests 991s ok 549 /regex/fetch-all0/335 991s ok 550 /regex/fetch-all0/336 991s # End of fetch-all0 tests 991s # Start of fetch-all1 tests 991s ok 551 /regex/fetch-all1/337 991s ok 552 /regex/fetch-all1/338 991s ok 553 /regex/fetch-all1/339 991s # End of fetch-all1 tests 991s # Start of fetch-all2 tests 991s ok 554 /regex/fetch-all2/340 991s ok 555 /regex/fetch-all2/341 991s ok 556 /regex/fetch-all2/342 991s # End of fetch-all2 tests 991s # Start of fetch-all3 tests 991s ok 557 /regex/fetch-all3/343 991s ok 558 /regex/fetch-all3/344 991s ok 559 /regex/fetch-all3/345 991s ok 560 /regex/fetch-all3/346 991s ok 561 /regex/fetch-all3/347 991s # End of fetch-all3 tests 991s # Start of split tests 991s # Start of simple0 tests 991s ok 562 /regex/split/simple0/348 991s ok 563 /regex/split/simple0/349 991s ok 564 /regex/split/simple0/364 991s ok 565 /regex/split/simple0/365 991s # End of simple0 tests 991s # Start of simple1 tests 991s ok 566 /regex/split/simple1/350 991s ok 567 /regex/split/simple1/351 991s # End of simple1 tests 991s # Start of simple2 tests 991s ok 568 /regex/split/simple2/352 991s ok 569 /regex/split/simple2/358 991s ok 570 /regex/split/simple2/360 991s # End of simple2 tests 991s # Start of simple3 tests 991s ok 571 /regex/split/simple3/353 991s ok 572 /regex/split/simple3/354 991s ok 573 /regex/split/simple3/355 991s ok 574 /regex/split/simple3/356 991s ok 575 /regex/split/simple3/357 991s ok 576 /regex/split/simple3/359 991s ok 577 /regex/split/simple3/361 991s ok 578 /regex/split/simple3/362 991s ok 579 /regex/split/simple3/363 991s # End of simple3 tests 991s # End of split tests 991s # Start of split0 tests 991s ok 580 /regex/split0/366 991s ok 581 /regex/split0/368 991s # End of split0 tests 991s # Start of full-split0 tests 991s ok 582 /regex/full-split0/367 991s ok 583 /regex/full-split0/369 991s ok 584 /regex/full-split0/370 991s ok 585 /regex/full-split0/371 991s ok 586 /regex/full-split0/372 991s # End of full-split0 tests 991s # Start of split1 tests 991s ok 587 /regex/split1/373 991s ok 588 /regex/split1/376 991s # End of split1 tests 991s # Start of full-split1 tests 991s ok 589 /regex/full-split1/374 991s ok 590 /regex/full-split1/375 991s ok 591 /regex/full-split1/377 991s ok 592 /regex/full-split1/378 991s ok 593 /regex/full-split1/404 991s # End of full-split1 tests 991s # Start of split2 tests 991s ok 594 /regex/split2/379 991s ok 595 /regex/split2/383 991s ok 596 /regex/split2/395 991s # End of split2 tests 991s # Start of full-split2 tests 991s ok 597 /regex/full-split2/380 991s ok 598 /regex/full-split2/381 991s ok 599 /regex/full-split2/382 991s ok 600 /regex/full-split2/384 991s ok 601 /regex/full-split2/396 991s ok 602 /regex/full-split2/399 991s ok 603 /regex/full-split2/405 991s # End of full-split2 tests 991s # Start of split3 tests 991s ok 604 /regex/split3/385 991s ok 605 /regex/split3/387 991s ok 606 /regex/split3/389 991s ok 607 /regex/split3/391 991s ok 608 /regex/split3/393 991s ok 609 /regex/split3/397 991s ok 610 /regex/split3/400 991s ok 611 /regex/split3/402 991s # End of split3 tests 991s # Start of full-split3 tests 991s ok 612 /regex/full-split3/386 991s ok 613 /regex/full-split3/388 991s ok 614 /regex/full-split3/390 991s ok 615 /regex/full-split3/392 991s ok 616 /regex/full-split3/394 991s ok 617 /regex/full-split3/398 991s ok 618 /regex/full-split3/401 991s ok 619 /regex/full-split3/403 991s ok 620 /regex/full-split3/406 991s ok 621 /regex/full-split3/407 991s # End of full-split3 tests 991s # Start of check-repacement tests 991s ok 622 /regex/check-repacement/408 991s ok 623 /regex/check-repacement/409 991s ok 624 /regex/check-repacement/410 991s ok 625 /regex/check-repacement/411 991s ok 626 /regex/check-repacement/412 991s ok 627 /regex/check-repacement/413 991s ok 628 /regex/check-repacement/414 991s ok 629 /regex/check-repacement/415 991s # End of check-repacement tests 991s # Start of expand tests 991s ok 630 /regex/expand/416 991s ok 631 /regex/expand/417 991s ok 632 /regex/expand/418 991s ok 633 /regex/expand/419 991s ok 634 /regex/expand/420 991s ok 635 /regex/expand/421 991s ok 636 /regex/expand/422 991s ok 637 /regex/expand/423 991s ok 638 /regex/expand/424 991s ok 639 /regex/expand/425 991s ok 640 /regex/expand/426 991s ok 641 /regex/expand/427 991s ok 642 /regex/expand/428 991s ok 643 /regex/expand/429 991s ok 644 /regex/expand/430 991s ok 645 /regex/expand/431 991s ok 646 /regex/expand/432 991s ok 647 /regex/expand/433 991s ok 648 /regex/expand/434 991s ok 649 /regex/expand/435 991s ok 650 /regex/expand/436 991s ok 651 /regex/expand/437 991s ok 652 /regex/expand/438 991s ok 653 /regex/expand/439 991s ok 654 /regex/expand/440 991s ok 655 /regex/expand/441 991s ok 656 /regex/expand/442 991s ok 657 /regex/expand/443 991s ok 658 /regex/expand/444 991s ok 659 /regex/expand/445 991s ok 660 /regex/expand/446 991s ok 661 /regex/expand/447 991s ok 662 /regex/expand/448 991s ok 663 /regex/expand/449 991s ok 664 /regex/expand/450 991s ok 665 /regex/expand/451 991s ok 666 /regex/expand/452 991s ok 667 /regex/expand/453 991s ok 668 /regex/expand/454 991s ok 669 /regex/expand/455 991s ok 670 /regex/expand/456 991s ok 671 /regex/expand/457 991s ok 672 /regex/expand/458 991s ok 673 /regex/expand/459 991s ok 674 /regex/expand/460 991s ok 675 /regex/expand/461 991s ok 676 /regex/expand/462 991s ok 677 /regex/expand/463 991s ok 678 /regex/expand/464 991s ok 679 /regex/expand/465 991s ok 680 /regex/expand/466 991s ok 681 /regex/expand/467 991s ok 682 /regex/expand/468 991s ok 683 /regex/expand/469 991s ok 684 /regex/expand/470 991s ok 685 /regex/expand/471 991s ok 686 /regex/expand/472 991s ok 687 /regex/expand/473 991s ok 688 /regex/expand/474 991s ok 689 /regex/expand/475 991s ok 690 /regex/expand/476 991s ok 691 /regex/expand/477 991s ok 692 /regex/expand/478 991s ok 693 /regex/expand/479 991s ok 694 /regex/expand/480 991s ok 695 /regex/expand/481 991s # End of expand tests 991s # Start of replace tests 991s ok 696 /regex/replace/482 991s ok 697 /regex/replace/483 991s ok 698 /regex/replace/484 991s ok 699 /regex/replace/485 991s ok 700 /regex/replace/486 991s ok 701 /regex/replace/487 991s ok 702 /regex/replace/488 991s ok 703 /regex/replace/489 991s ok 704 /regex/replace/490 991s ok 705 /regex/replace/491 991s ok 706 /regex/replace/492 991s ok 707 /regex/replace/493 991s ok 708 /regex/replace/494 991s ok 709 /regex/replace/495 991s ok 710 /regex/replace/496 991s ok 711 /regex/replace/497 991s ok 712 /regex/replace/498 991s ok 713 /regex/replace/499 991s ok 714 /regex/replace/500 991s ok 715 /regex/replace/501 991s ok 716 /regex/replace/502 991s ok 717 /regex/replace/503 991s ok 718 /regex/replace/504 991s ok 719 /regex/replace/505 991s ok 720 /regex/replace/506 991s ok 721 /regex/replace/507 991s ok 722 /regex/replace/508 991s ok 723 /regex/replace/509 991s # End of replace tests 991s # Start of replace-optimized tests 991s ok 724 /regex/replace-optimized/482 991s ok 725 /regex/replace-optimized/483 991s ok 726 /regex/replace-optimized/484 991s ok 727 /regex/replace-optimized/485 991s ok 728 /regex/replace-optimized/486 991s ok 729 /regex/replace-optimized/487 991s ok 730 /regex/replace-optimized/488 991s ok 731 /regex/replace-optimized/489 991s ok 732 /regex/replace-optimized/490 991s ok 733 /regex/replace-optimized/491 991s ok 734 /regex/replace-optimized/492 991s ok 735 /regex/replace-optimized/493 991s ok 736 /regex/replace-optimized/494 991s ok 737 /regex/replace-optimized/495 991s ok 738 /regex/replace-optimized/496 991s ok 739 /regex/replace-optimized/497 991s ok 740 /regex/replace-optimized/498 991s ok 741 /regex/replace-optimized/499 991s ok 742 /regex/replace-optimized/500 991s ok 743 /regex/replace-optimized/501 991s ok 744 /regex/replace-optimized/502 991s ok 745 /regex/replace-optimized/503 991s ok 746 /regex/replace-optimized/504 991s ok 747 /regex/replace-optimized/505 991s ok 748 /regex/replace-optimized/506 991s ok 749 /regex/replace-optimized/507 991s ok 750 /regex/replace-optimized/508 991s ok 751 /regex/replace-optimized/509 991s # End of replace-optimized tests 991s # Start of replace-literally tests 991s ok 752 /regex/replace-literally/510 991s ok 753 /regex/replace-literally/511 991s ok 754 /regex/replace-literally/512 991s ok 755 /regex/replace-literally/513 991s ok 756 /regex/replace-literally/514 991s ok 757 /regex/replace-literally/515 991s ok 758 /regex/replace-literally/516 991s ok 759 /regex/replace-literally/517 991s ok 760 /regex/replace-literally/518 991s ok 761 /regex/replace-literally/519 991s ok 762 /regex/replace-literally/520 991s ok 763 /regex/replace-literally/521 991s ok 764 /regex/replace-literally/522 991s ok 765 /regex/replace-literally/523 991s ok 766 /regex/replace-literally/524 991s ok 767 /regex/replace-literally/525 991s ok 768 /regex/replace-literally/526 991s ok 769 /regex/replace-literally/527 991s ok 770 /regex/replace-literally/528 991s ok 771 /regex/replace-literally/529 991s # End of replace-literally tests 991s # Start of string-number tests 991s ok 772 /regex/string-number/530 991s ok 773 /regex/string-number/531 991s ok 774 /regex/string-number/532 991s ok 775 /regex/string-number/533 991s ok 776 /regex/string-number/534 991s ok 777 /regex/string-number/535 991s ok 778 /regex/string-number/536 991s ok 779 /regex/string-number/537 991s ok 780 /regex/string-number/538 991s ok 781 /regex/string-number/539 991s ok 782 /regex/string-number/540 991s ok 783 /regex/string-number/541 991s ok 784 /regex/string-number/542 991s ok 785 /regex/string-number/543 991s ok 786 /regex/string-number/544 991s # End of string-number tests 991s # Start of escape_nul tests 991s ok 787 /regex/escape_nul/545 991s ok 788 /regex/escape_nul/546 991s ok 789 /regex/escape_nul/547 991s ok 790 /regex/escape_nul/548 991s ok 791 /regex/escape_nul/549 991s ok 792 /regex/escape_nul/550 991s ok 793 /regex/escape_nul/551 991s ok 794 /regex/escape_nul/552 991s ok 795 /regex/escape_nul/553 991s ok 796 /regex/escape_nul/554 991s ok 797 /regex/escape_nul/555 991s ok 798 /regex/escape_nul/556 991s ok 799 /regex/escape_nul/557 991s ok 800 /regex/escape_nul/558 991s ok 801 /regex/escape_nul/559 991s # End of escape_nul tests 991s # Start of escape tests 991s ok 802 /regex/escape/560 991s ok 803 /regex/escape/561 991s ok 804 /regex/escape/562 991s ok 805 /regex/escape/563 991s ok 806 /regex/escape/564 991s ok 807 /regex/escape/565 991s ok 808 /regex/escape/566 991s ok 809 /regex/escape/567 991s ok 810 /regex/escape/568 991s ok 811 /regex/escape/569 991s ok 812 /regex/escape/570 991s ok 813 /regex/escape/571 991s ok 814 /regex/escape/572 991s ok 815 /regex/escape/573 991s ok 816 /regex/escape/574 991s ok 817 /regex/escape/575 991s ok 818 /regex/escape/576 991s ok 819 /regex/escape/577 991s # End of escape tests 991s # Start of match-all0 tests 991s ok 820 /regex/match-all0/578 991s ok 821 /regex/match-all0/580 991s # End of match-all0 tests 991s # Start of match-all-full0 tests 991s ok 822 /regex/match-all-full0/579 991s ok 823 /regex/match-all-full0/581 991s ok 824 /regex/match-all-full0/582 991s ok 825 /regex/match-all-full0/583 991s # End of match-all-full0 tests 991s # Start of match-all1 tests 991s ok 826 /regex/match-all1/584 991s ok 827 /regex/match-all1/586 991s ok 828 /regex/match-all1/591 991s # End of match-all1 tests 991s # Start of match-all-full1 tests 991s ok 829 /regex/match-all-full1/585 991s ok 830 /regex/match-all-full1/587 991s ok 831 /regex/match-all-full1/588 991s ok 832 /regex/match-all-full1/589 991s ok 833 /regex/match-all-full1/590 991s ok 834 /regex/match-all-full1/592 991s # End of match-all-full1 tests 991s # Start of match-all2 tests 991s ok 835 /regex/match-all2/593 991s ok 836 /regex/match-all2/595 991s ok 837 /regex/match-all2/597 991s # End of match-all2 tests 991s # Start of match-all-full2 tests 991s ok 838 /regex/match-all-full2/594 991s ok 839 /regex/match-all-full2/596 991s ok 840 /regex/match-all-full2/598 991s # End of match-all-full2 tests 991s # Start of match-all3 tests 991s ok 841 /regex/match-all3/599 991s ok 842 /regex/match-all3/601 991s # End of match-all3 tests 991s # Start of match-all-full3 tests 991s ok 843 /regex/match-all-full3/600 991s ok 844 /regex/match-all-full3/602 991s # End of match-all-full3 tests 991s # Start of match-notempty tests 991s ok 845 /regex/match-notempty/603 991s # End of match-notempty tests 991s # Start of match-notempty-optimized tests 991s ok 846 /regex/match-notempty-optimized/603 991s # End of match-notempty-optimized tests 991s # Start of match-notempty-atstart tests 991s ok 847 /regex/match-notempty-atstart/604 991s # End of match-notempty-atstart tests 991s # Start of match-notempty-atstart-optimized tests 991s ok 848 /regex/match-notempty-atstart-optimized/604 991s # End of match-notempty-atstart-optimized tests 991s # End of regex tests 991s ok - glib/regex.test 991s # Running test: glib/markup-parse.test 991s ok - glib/markup-parse.test 991s # Running test: glib/overflow-fallback.test 991s ok - glib/overflow-fallback.test 991s # Running test: glib/properties-refcount3.test 991s TAP version 14 991s # random seed: R02Sd79153c8633ff87fa6c319368296bff3 991s 1..71 991s # Start of markup tests 991s # Start of parse tests 991s ok 1 /markup/parse/valid-3.gmarkup 991s ok 2 /markup/parse/fail-53.gmarkup 991s ok 3 /markup/parse/fail-8.gmarkup 991s ok 4 /markup/parse/fail-23.gmarkup 991s ok 5 /markup/parse/valid-2.gmarkup 991s ok 6 /markup/parse/fail-31.gmarkup 991s ok 7 /markup/parse/fail-44.gmarkup 991s ok 8 /markup/parse/valid-17.gmarkup 991s ok 9 /markup/parse/valid-4.gmarkup 991s ok 10 /markup/parse/fail-9.gmarkup 991s ok 11 /markup/parse/valid-9.gmarkup 991s ok 12 /markup/parse/fail-42.gmarkup 991s ok 13 /markup/parse/fail-46.gmarkup 991s ok 14 /markup/parse/fail-37.gmarkup 991s ok 15 /markup/parse/fail-5.gmarkup 991s ok 16 /markup/parse/fail-1.gmarkup 991s ok 17 /markup/parse/fail-47.gmarkup 991s ok 18 /markup/parse/fail-21.gmarkup 991s ok 19 /markup/parse/fail-22.gmarkup 991s ok 20 /markup/parse/fail-2.gmarkup 991s ok 21 /markup/parse/fail-15.gmarkup 991s ok 22 /markup/parse/fail-41.gmarkup 991s ok 23 /markup/parse/valid-15.gmarkup 991s ok 24 /markup/parse/valid-8.gmarkup 991s ok 25 /markup/parse/valid-14.gmarkup 991s ok 26 /markup/parse/fail-51.gmarkup 991s ok 27 /markup/parse/valid-10.gmarkup 991s ok 28 /markup/parse/fail-12.gmarkup 991s ok 29 /markup/parse/fail-27.gmarkup 991s ok 30 /markup/parse/fail-54.gmarkup 991s ok 31 /markup/parse/fail-18.gmarkup 991s ok 32 /markup/parse/fail-14.gmarkup 991s ok 33 /markup/parse/fail-4.gmarkup 991s ok 34 /markup/parse/valid-1.gmarkup 991s ok 35 /markup/parse/fail-17.gmarkup 991s ok 36 /markup/parse/fail-50.gmarkup 991s ok 37 /markup/parse/fail-10.gmarkup 991s ok 38 /markup/parse/valid-16.gmarkup 991s ok 39 /markup/parse/valid-12.gmarkup 991s ok 40 /markup/parse/fail-25.gmarkup 991s ok 41 /markup/parse/valid-13.gmarkup 991s ok 42 /markup/parse/valid-11.gmarkup 991s ok 43 /markup/parse/valid-7.gmarkup 991s ok 44 /markup/parse/fail-34.gmarkup 991s ok 45 /markup/parse/valid-6.gmarkup 991s ok 46 /markup/parse/fail-36.gmarkup 991s ok 47 /markup/parse/fail-38.gmarkup 991s ok 48 /markup/parse/fail-45.gmarkup 991s ok 49 /markup/parse/fail-16.gmarkup 991s ok 50 /markup/parse/fail-11.gmarkup 991s ok 51 /markup/parse/fail-3.gmarkup 991s ok 52 /markup/parse/fail-48.gmarkup 991s ok 53 /markup/parse/fail-19.gmarkup 991s ok 54 /markup/parse/fail-6.gmarkup 991s ok 55 /markup/parse/fail-39.gmarkup 991s ok 56 /markup/parse/fail-24.gmarkup 991s ok 57 /markup/parse/fail-26.gmarkup 991s ok 58 /markup/parse/fail-20.gmarkup 991s ok 59 /markup/parse/fail-32.gmarkup 991s ok 60 /markup/parse/fail-43.gmarkup 991s ok 61 /markup/parse/fail-35.gmarkup 991s ok 62 /markup/parse/fail-29.gmarkup 991s ok 63 /markup/parse/fail-52.gmarkup 991s ok 64 /markup/parse/fail-28.gmarkup 991s ok 65 /markup/parse/valid-5.gmarkup 991s ok 66 /markup/parse/fail-13.gmarkup 991s ok 67 /markup/parse/fail-7.gmarkup 991s ok 68 /markup/parse/fail-30.gmarkup 991s ok 69 /markup/parse/fail-33.gmarkup 991s ok 70 /markup/parse/fail-49.gmarkup 991s ok 71 /markup/parse/fail-40.gmarkup 991s # End of parse tests 991s # End of markup tests 991s TAP version 14 991s # random seed: R02S95314dd366f89e6d70172f6aa5d550fe 991s 1..6 991s # Start of glib tests 991s # Start of checked-math tests 991s ok 1 /glib/checked-math/guint-add 991s ok 2 /glib/checked-math/guint-mul 991s ok 3 /glib/checked-math/guint64-add 991s ok 4 /glib/checked-math/guint64-mul 991s ok 5 /glib/checked-math/gsize-add 991s ok 6 /glib/checked-math/gsize-mul 991s # End of checked-math tests 991s # End of glib tests 991s TAP version 14 991s # random seed: R02S4c8a1c3dd1fade9c2549bec19ee2c4fe 991s 1..1 991s # Start of gobject tests 991s # Start of refcount tests 993s # Executing: glib/properties-refcount3.test 998s # Executing: glib/properties-refcount3.test 1003s # Executing: glib/properties-refcount3.test 1008s # Executing: glib/properties-refcount3.test 1013s # Executing: glib/properties-refcount3.test 1018s # Executing: glib/properties-refcount3.test 1021s # 1021s # stopping 1021s # 1021s # stopped 1021s # 1021s # 24278041 2452984 1021s # 1021s ok 1 /gobject/refcount/properties-3 1021s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1021s # End of refcount tests 1021s # End of gobject tests 1021s ok - glib/properties-refcount3.test 1021s # Running test: glib/memory-monitor-poll.test 1021s TAP version 14 1021s # random seed: R02Se0c6a08c44bf36f957d48acb3e4a060d 1021s 1..4 1021s # Start of memory-monitor-poll tests 1021s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1021s ok 1 /memory-monitor-poll/dup-default 1021s # GLib-GIO-DEBUG: memory free ratio 0.190000 1021s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1021s ok 2 /memory-monitor-poll/critical-event 1022s # GLib-GIO-DEBUG: memory free ratio 0.290000 1022s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1022s ok 3 /memory-monitor-poll/medium-event 1022s # GLib-GIO-DEBUG: memory free ratio 0.390000 1022s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1022s ok 4 /memory-monitor-poll/low-event 1022s # End of memory-monitor-poll tests 1022s ok - glib/memory-monitor-poll.test 1022s # Running test: glib/utils-c-11.test 1022s TAP version 14 1022s # random seed: R02S07ed4ea1aa2ce12ab925bbee45e0ce71 1022s 1..41 1022s # Start of utils tests 1022s ok 1 /utils/language-names 1022s # Testing locale ‘en’ 1022s # Testing locale ‘sr@latin’ 1022s # Testing locale ‘fr_BE’ 1022s # Testing locale ‘sr_SR@latin’ 1022s # Testing locale ‘sr_SR@latin.UTF-8’ 1022s # Testing locale ‘sr@latin_invalid’ 1022s # Testing locale ‘sr.UTF-8@latin’ 1022s # Testing locale ‘sr.UTF-8_latin’ 1022s # Testing locale ‘sr.UTF-8@latin_invalid’ 1022s ok 2 /utils/locale-variants 1022s ok 3 /utils/version 1022s ok 4 /utils/appname 1022s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1022s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1022s ok 5 /utils/prgname-thread-safety 1022s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1022s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1022s ok 6 /utils/tmpdir 1022s ok 7 /utils/basic_bits 1022s ok 8 /utils/bits 1022s ok 9 /utils/swap 1022s ok 10 /utils/find-program 1022s ok 11 /utils/find-program-for-path 1022s ok 12 /utils/debug 1022s ok 13 /utils/codeset 1022s ok 14 /utils/codeset2 1022s ok 15 /utils/console-charset 1022s ok 16 /utils/gettext 1022s ok 17 /utils/username 1022s ok 18 /utils/realname 1022s ok - glib/utils-c-11.test 1022s # Running test: glib/closure-refcount.test 1022s ok 19 /utils/hostname 1022s ok 20 /utils/xdgdirs 1022s ok 21 /utils/specialdir 1022s # NAME: Ubuntu 1022s ok 22 /utils/os-info 1022s ok 23 /utils/clear-pointer 1022s ok 24 /utils/clear-pointer-cast 1022s ok 25 /utils/take-pointer 1022s ok 26 /utils/clear-source 1022s ok 27 /utils/misc-mem 1022s # /utils/aligned-mem summary: Aligned memory allocator 1022s # Alignment must not be zero 1022s # Alignment must be a power of two 1022s # Alignment must be a multiple of sizeof(void*) 1022s ok 28 /utils/aligned-mem 1022s # /utils/free-sized summary: Check that g_free_sized() works 1022s ok 29 /utils/free-sized 1022s ok 30 /utils/nullify 1022s ok 31 /utils/atexit 1022s ok 32 /utils/check-setuid 1022s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1022s ok 33 /utils/int-limits 1022s ok 34 /utils/clear-list 1022s ok 35 /utils/clear-slist 1022s ok 36 /utils/steal-handle-id 1022s # Start of specialdir tests 1022s ok 37 /utils/specialdir/desktop 1022s # End of specialdir tests 1022s # Start of clear-pointer tests 1022s ok 38 /utils/clear-pointer/side-effects 1022s # End of clear-pointer tests 1022s # Start of aligned-mem tests 1022s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1022s ok 39 /utils/aligned-mem/alignment 1022s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1022s ok 40 /utils/aligned-mem/zeroed 1022s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1022s ok 41 /utils/aligned-mem/free-sized 1022s # Start of subprocess tests 1022s # End of subprocess tests 1022s # End of aligned-mem tests 1022s # End of utils tests 1022s TAP version 14 1022s # random seed: R02Sc63d45e56e4e5c2edeedb625d451f774 1022s 1..1 1022s # Start of closure tests 1022s # Init 0xc2585d97edc0 1022s # Yielding from main thread 1022s # Yielding from main thread 1022s # Yielding from thread1 1022s # Yielding from main thread 1022s # Yielding from main thread 1022s # Yielding from main thread 1022s # Yielding from main thread 1022s # Yielding from main thread 1022s # Yielding from thread1 1022s # Yielding from main thread 1022s # Yielding from thread2 1022s # Yielding from main thread 1022s # Stopping 1022s # Stopped 1022s ok 1 /closure/refcount 1022s # End of closure tests 1022s ok - glib/closure-refcount.test 1022s # Running test: glib/protocol.test 1022s TAP version 14 1022s # random seed: R02S01c3d0a519e3a172cabc08ecca70eb0d 1022s 1..9 1022s # Start of glib tests 1022s # Start of testing tests 1022s # Start of protocol tests 1022s ok 1 /glib/testing/protocol/debug 1022s ok 2 /glib/testing/protocol/info 1022s ok 3 /glib/testing/protocol/message 1022s ok 4 /glib/testing/protocol/warning 1022s ok 5 /glib/testing/protocol/critical 1022s ok 6 /glib/testing/protocol/error 1022s ok 7 /glib/testing/protocol/gtest-message 1022s ok 8 /glib/testing/protocol/test-message 1022s ok 9 /glib/testing/protocol/test-error 1022s # End of protocol tests 1022s # End of testing tests 1022s ok - glib/protocol.test 1022s # End of glib tests 1022s # Running test: glib/gdbus-error.test 1022s TAP version 14 1022s # random seed: R02S020dd3648f44a815c38968c0074267ca 1022s 1..4 1022s # Start of gdbus tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_EK0RE3/gdbus/registered-errors/.dirs/runtime 1022s ok 1 /gdbus/registered-errors 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_EK0RE3/gdbus/unregistered-errors/.dirs/runtime 1022s ok 2 /gdbus/unregistered-errors 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_EK0RE3/gdbus/transparent-gerror/.dirs/runtime 1022s ok 3 /gdbus/transparent-gerror 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_EK0RE3/gdbus/register-error/.dirs/runtime 1022s ok 4 /gdbus/register-error 1022s # End of gdbus tests 1022s ok - glib/gdbus-error.test 1022s # Running test: glib/slist.test 1022s TAP version 14 1022s # random seed: R02S38b8c49f59c13061fe87164cf78abd2c 1022s 1..14 1022s # Start of slist tests 1022s ok 1 /slist/sort 1022s ok 2 /slist/sort-with-data 1022s ok 3 /slist/insert-sorted 1022s ok - glib/slist.test 1022s # Running test: glib/param.test 1022s ok 4 /slist/insert-sorted-with-data 1022s ok 5 /slist/reverse 1022s ok 6 /slist/nth 1022s ok 7 /slist/remove 1022s ok 8 /slist/remove-all 1022s ok 9 /slist/insert 1022s ok 10 /slist/position 1022s ok 11 /slist/concat 1022s ok 12 /slist/copy 1022s # Start of sort tests 1022s ok 13 /slist/sort/stable 1022s # End of sort tests 1022s # Start of copy tests 1022s ok 14 /slist/copy/deep 1022s # End of copy tests 1022s # End of slist tests 1022s TAP version 14 1022s # random seed: R02S644953e532ab3e2f47b630f9e8016a24 1022s 1..32 1022s # Start of param tests 1022s ok 1 /param/value 1022s ok 2 /param/strings 1022s ok 3 /param/qdata 1022s ok 4 /param/validate 1022s ok 5 /param/convert 1022s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1022s ok 7 /param/default 1022s ok 8 /param/is-valid-name 1022s # Start of invalid-name tests 1022s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1022s ok 9 /param/invalid-name/colon 1022s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1022s ok 10 /param/invalid-name/first-char 1022s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1022s ok 11 /param/invalid-name/empty 1022s # End of invalid-name tests 1022s # Start of implement tests 1022s # Start of subprocess tests 1022s # End of subprocess tests 1022s # End of implement tests 1022s # End of param tests 1022s # Start of value tests 1022s ok 12 /value/transform 1022s # End of value tests 1022s # Start of paramspec tests 1022s ok 13 /paramspec/char 1022s ok 14 /paramspec/uchar 1022s ok 15 /paramspec/int 1022s ok 16 /paramspec/uint 1022s ok 17 /paramspec/long 1022s ok 18 /paramspec/ulong 1022s ok 19 /paramspec/int64 1022s ok 20 /paramspec/uint64 1022s ok 21 /paramspec/float 1022s ok 22 /paramspec/double 1022s ok 23 /paramspec/unichar 1022s ok 24 /paramspec/param 1022s ok 25 /paramspec/null-param 1022s ok 26 /paramspec/string 1022s ok 27 /paramspec/override 1022s ok 28 /paramspec/gtype 1022s ok 29 /paramspec/variant 1022s ok 30 /paramspec/custom 1022s ok 31 /paramspec/pool 1022s # Start of variant tests 1022s ok 32 /paramspec/variant/cmp 1022s # End of variant tests 1022s # End of paramspec tests 1022s ok - glib/param.test 1022s # Running test: glib/fdo-notification-backend.test 1022s TAP version 14 1022s # random seed: R02Sbb490d91322c25bddf325d8ebd0c3a09 1022s 1..2 1022s # Start of fdo-notification-backend tests 1022s # Test constructing a GFdoNotificationBackend 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 1 /fdo-notification-backend/construction 1022s # Start of dbus tests 1022s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 2 /fdo-notification-backend/dbus/activate-action 1022s # End of dbus tests 1022s # End of fdo-notification-backend tests 1022s ok - glib/fdo-notification-backend.test 1022s # Running test: glib/utf8-private.test 1022s TAP version 14 1022s # random seed: R02Scd77d59765280ae8ea6e4a1b2ccfe90f 1022s 1..2 1022s # Start of utf8 tests 1022s ok 1 /utf8/utf8-to-utf16-make-valid 1022s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1022s # End of utf8 tests 1022s ok - glib/utf8-private.test 1022s # Running test: glib/checksum.test 1022s TAP version 14 1022s # random seed: R02Sdce6bdf7385caf3eae3008cb89643f12 1022s 1..1851 1022s # Start of checksum tests 1022s ok 1 /checksum/unsupported 1022s # Start of MD5 tests 1022s ok 2 /checksum/MD5/0 1022s ok 3 /checksum/MD5/1 1022s ok 4 /checksum/MD5/2 1022s ok 5 /checksum/MD5/3 1022s ok 6 /checksum/MD5/4 1022s ok 7 /checksum/MD5/5 1022s ok 8 /checksum/MD5/6 1022s ok 9 /checksum/MD5/7 1022s ok 10 /checksum/MD5/8 1022s ok 11 /checksum/MD5/9 1022s ok 12 /checksum/MD5/10 1022s ok 13 /checksum/MD5/11 1022s ok 14 /checksum/MD5/12 1022s ok 15 /checksum/MD5/13 1022s ok 16 /checksum/MD5/14 1022s ok 17 /checksum/MD5/15 1022s ok 18 /checksum/MD5/16 1022s ok 19 /checksum/MD5/17 1022s ok 20 /checksum/MD5/18 1022s ok 21 /checksum/MD5/19 1022s ok 22 /checksum/MD5/20 1022s ok 23 /checksum/MD5/21 1022s ok 24 /checksum/MD5/22 1022s ok 25 /checksum/MD5/23 1022s ok 26 /checksum/MD5/24 1022s ok 27 /checksum/MD5/25 1022s ok 28 /checksum/MD5/26 1022s ok 29 /checksum/MD5/27 1022s ok 30 /checksum/MD5/28 1022s ok 31 /checksum/MD5/29 1022s ok 32 /checksum/MD5/30 1022s ok 33 /checksum/MD5/31 1022s ok 34 /checksum/MD5/32 1022s ok 35 /checksum/MD5/33 1022s ok 36 /checksum/MD5/34 1022s ok 37 /checksum/MD5/35 1022s ok 38 /checksum/MD5/36 1022s ok 39 /checksum/MD5/37 1022s ok 40 /checksum/MD5/38 1022s ok 41 /checksum/MD5/39 1022s ok 42 /checksum/MD5/40 1022s ok 43 /checksum/MD5/41 1022s ok 44 /checksum/MD5/42 1022s ok 45 /checksum/MD5/43 1022s ok 46 /checksum/MD5/44 1022s ok 47 /checksum/MD5/45 1022s ok 48 /checksum/MD5/46 1022s ok 49 /checksum/MD5/47 1022s ok 50 /checksum/MD5/48 1022s ok 51 /checksum/MD5/49 1022s ok 52 /checksum/MD5/50 1022s ok 53 /checksum/MD5/51 1022s ok 54 /checksum/MD5/52 1022s ok 55 /checksum/MD5/53 1022s ok 56 /checksum/MD5/54 1022s ok 57 /checksum/MD5/55 1022s ok 58 /checksum/MD5/56 1022s ok 59 /checksum/MD5/57 1022s ok 60 /checksum/MD5/58 1022s ok 61 /checksum/MD5/59 1022s ok 62 /checksum/MD5/60 1022s ok 63 /checksum/MD5/61 1022s ok 64 /checksum/MD5/62 1022s ok 65 /checksum/MD5/63 1022s ok 66 /checksum/MD5/64 1022s ok 67 /checksum/MD5/65 1022s ok 68 /checksum/MD5/66 1022s ok 69 /checksum/MD5/67 1022s ok 70 /checksum/MD5/68 1022s ok 71 /checksum/MD5/69 1022s ok 72 /checksum/MD5/70 1022s ok 73 /checksum/MD5/71 1022s ok 74 /checksum/MD5/72 1022s ok 75 /checksum/MD5/73 1022s ok 76 /checksum/MD5/74 1022s ok 77 /checksum/MD5/75 1022s ok 78 /checksum/MD5/76 1022s ok 79 /checksum/MD5/77 1022s ok 80 /checksum/MD5/78 1022s ok 81 /checksum/MD5/79 1022s ok 82 /checksum/MD5/80 1022s ok 83 /checksum/MD5/81 1022s ok 84 /checksum/MD5/82 1022s ok 85 /checksum/MD5/83 1022s ok 86 /checksum/MD5/84 1022s ok 87 /checksum/MD5/85 1022s ok 88 /checksum/MD5/86 1022s ok 89 /checksum/MD5/87 1022s ok 90 /checksum/MD5/88 1022s ok 91 /checksum/MD5/89 1022s ok 92 /checksum/MD5/90 1022s ok 93 /checksum/MD5/91 1022s ok 94 /checksum/MD5/92 1022s ok 95 /checksum/MD5/93 1022s ok 96 /checksum/MD5/94 1022s ok 97 /checksum/MD5/95 1022s ok 98 /checksum/MD5/96 1022s ok 99 /checksum/MD5/97 1022s ok 100 /checksum/MD5/98 1022s ok 101 /checksum/MD5/99 1022s ok 102 /checksum/MD5/100 1022s ok 103 /checksum/MD5/101 1022s ok 104 /checksum/MD5/102 1022s ok 105 /checksum/MD5/103 1022s ok 106 /checksum/MD5/104 1022s ok 107 /checksum/MD5/105 1022s ok 108 /checksum/MD5/106 1022s ok 109 /checksum/MD5/107 1022s ok 110 /checksum/MD5/108 1022s ok 111 /checksum/MD5/109 1022s ok 112 /checksum/MD5/110 1022s ok 113 /checksum/MD5/111 1022s ok 114 /checksum/MD5/112 1022s ok 115 /checksum/MD5/113 1022s ok 116 /checksum/MD5/114 1022s ok 117 /checksum/MD5/115 1022s ok 118 /checksum/MD5/116 1022s ok 119 /checksum/MD5/117 1022s ok 120 /checksum/MD5/118 1022s ok 121 /checksum/MD5/119 1022s ok 122 /checksum/MD5/120 1022s ok 123 /checksum/MD5/121 1022s ok 124 /checksum/MD5/122 1022s ok 125 /checksum/MD5/123 1022s ok 126 /checksum/MD5/124 1022s ok 127 /checksum/MD5/125 1022s ok 128 /checksum/MD5/126 1022s ok 129 /checksum/MD5/127 1022s ok 130 /checksum/MD5/128 1022s ok 131 /checksum/MD5/129 1022s ok 132 /checksum/MD5/130 1022s ok 133 /checksum/MD5/131 1022s ok 134 /checksum/MD5/132 1022s ok 135 /checksum/MD5/133 1022s ok 136 /checksum/MD5/134 1022s ok 137 /checksum/MD5/135 1022s ok 138 /checksum/MD5/136 1022s ok 139 /checksum/MD5/137 1022s ok 140 /checksum/MD5/138 1022s ok 141 /checksum/MD5/139 1022s ok 142 /checksum/MD5/140 1022s ok 143 /checksum/MD5/141 1022s ok 144 /checksum/MD5/142 1022s ok 145 /checksum/MD5/143 1022s ok 146 /checksum/MD5/144 1022s ok 147 /checksum/MD5/145 1022s ok 148 /checksum/MD5/146 1022s ok 149 /checksum/MD5/147 1022s ok 150 /checksum/MD5/148 1022s ok 151 /checksum/MD5/149 1022s ok 152 /checksum/MD5/150 1022s ok 153 /checksum/MD5/151 1022s ok 154 /checksum/MD5/152 1022s ok 155 /checksum/MD5/153 1022s ok 156 /checksum/MD5/154 1022s ok 157 /checksum/MD5/155 1022s ok 158 /checksum/MD5/156 1022s ok 159 /checksum/MD5/157 1022s ok 160 /checksum/MD5/158 1022s ok 161 /checksum/MD5/159 1022s ok 162 /checksum/MD5/160 1022s ok 163 /checksum/MD5/161 1022s ok 164 /checksum/MD5/162 1022s ok 165 /checksum/MD5/163 1022s ok 166 /checksum/MD5/164 1022s ok 167 /checksum/MD5/165 1022s ok 168 /checksum/MD5/166 1022s ok 169 /checksum/MD5/167 1022s ok 170 /checksum/MD5/168 1022s ok 171 /checksum/MD5/169 1022s ok 172 /checksum/MD5/170 1022s ok 173 /checksum/MD5/171 1022s ok 174 /checksum/MD5/172 1022s ok 175 /checksum/MD5/173 1022s ok 176 /checksum/MD5/174 1022s ok 177 /checksum/MD5/175 1022s ok 178 /checksum/MD5/176 1022s ok 179 /checksum/MD5/177 1022s ok 180 /checksum/MD5/178 1022s ok 181 /checksum/MD5/179 1022s ok 182 /checksum/MD5/180 1022s ok 183 /checksum/MD5/181 1022s ok 184 /checksum/MD5/182 1022s ok 185 /checksum/MD5/183 1022s ok 186 /checksum/MD5/string 1022s ok 187 /checksum/MD5/bytes 1022s # Start of reset tests 1022s ok 188 /checksum/MD5/reset/0 1022s ok 189 /checksum/MD5/reset/1 1022s ok 190 /checksum/MD5/reset/2 1022s ok 191 /checksum/MD5/reset/3 1022s ok 192 /checksum/MD5/reset/4 1022s ok 193 /checksum/MD5/reset/5 1022s ok 194 /checksum/MD5/reset/6 1022s ok 195 /checksum/MD5/reset/7 1022s ok 196 /checksum/MD5/reset/8 1022s ok 197 /checksum/MD5/reset/9 1022s ok 198 /checksum/MD5/reset/10 1022s ok 199 /checksum/MD5/reset/11 1022s ok 200 /checksum/MD5/reset/12 1022s ok 201 /checksum/MD5/reset/13 1022s ok 202 /checksum/MD5/reset/14 1022s ok 203 /checksum/MD5/reset/15 1022s ok 204 /checksum/MD5/reset/16 1022s ok 205 /checksum/MD5/reset/17 1022s ok 206 /checksum/MD5/reset/18 1022s ok 207 /checksum/MD5/reset/19 1022s ok 208 /checksum/MD5/reset/20 1022s ok 209 /checksum/MD5/reset/21 1022s ok 210 /checksum/MD5/reset/22 1022s ok 211 /checksum/MD5/reset/23 1022s ok 212 /checksum/MD5/reset/24 1022s ok 213 /checksum/MD5/reset/25 1022s ok 214 /checksum/MD5/reset/26 1022s ok 215 /checksum/MD5/reset/27 1022s ok 216 /checksum/MD5/reset/28 1022s ok 217 /checksum/MD5/reset/29 1022s ok 218 /checksum/MD5/reset/30 1022s ok 219 /checksum/MD5/reset/31 1022s ok 220 /checksum/MD5/reset/32 1022s ok 221 /checksum/MD5/reset/33 1022s ok 222 /checksum/MD5/reset/34 1022s ok 223 /checksum/MD5/reset/35 1022s ok 224 /checksum/MD5/reset/36 1022s ok 225 /checksum/MD5/reset/37 1022s ok 226 /checksum/MD5/reset/38 1022s ok 227 /checksum/MD5/reset/39 1022s ok 228 /checksum/MD5/reset/40 1022s ok 229 /checksum/MD5/reset/41 1022s ok 230 /checksum/MD5/reset/42 1022s ok 231 /checksum/MD5/reset/43 1022s ok 232 /checksum/MD5/reset/44 1022s ok 233 /checksum/MD5/reset/45 1022s ok 234 /checksum/MD5/reset/46 1022s ok 235 /checksum/MD5/reset/47 1022s ok 236 /checksum/MD5/reset/48 1022s ok 237 /checksum/MD5/reset/49 1022s ok 238 /checksum/MD5/reset/50 1022s ok 239 /checksum/MD5/reset/51 1022s ok 240 /checksum/MD5/reset/52 1022s ok 241 /checksum/MD5/reset/53 1022s ok 242 /checksum/MD5/reset/54 1022s ok 243 /checksum/MD5/reset/55 1022s ok 244 /checksum/MD5/reset/56 1022s ok 245 /checksum/MD5/reset/57 1022s ok 246 /checksum/MD5/reset/58 1022s ok 247 /checksum/MD5/reset/59 1022s ok 248 /checksum/MD5/reset/60 1022s ok 249 /checksum/MD5/reset/61 1022s ok 250 /checksum/MD5/reset/62 1022s ok 251 /checksum/MD5/reset/63 1022s ok 252 /checksum/MD5/reset/64 1022s ok 253 /checksum/MD5/reset/65 1022s ok 254 /checksum/MD5/reset/66 1022s ok 255 /checksum/MD5/reset/67 1022s ok 256 /checksum/MD5/reset/68 1022s ok 257 /checksum/MD5/reset/69 1022s ok 258 /checksum/MD5/reset/70 1022s ok 259 /checksum/MD5/reset/71 1022s ok 260 /checksum/MD5/reset/72 1022s ok 261 /checksum/MD5/reset/73 1022s ok 262 /checksum/MD5/reset/74 1022s ok 263 /checksum/MD5/reset/75 1022s ok 264 /checksum/MD5/reset/76 1022s ok 265 /checksum/MD5/reset/77 1022s ok 266 /checksum/MD5/reset/78 1022s ok 267 /checksum/MD5/reset/79 1022s ok 268 /checksum/MD5/reset/80 1022s ok 269 /checksum/MD5/reset/81 1022s ok 270 /checksum/MD5/reset/82 1022s ok 271 /checksum/MD5/reset/83 1022s ok 272 /checksum/MD5/reset/84 1022s ok 273 /checksum/MD5/reset/85 1022s ok 274 /checksum/MD5/reset/86 1022s ok 275 /checksum/MD5/reset/87 1022s ok 276 /checksum/MD5/reset/88 1022s ok 277 /checksum/MD5/reset/89 1022s ok 278 /checksum/MD5/reset/90 1022s ok 279 /checksum/MD5/reset/91 1022s ok 280 /checksum/MD5/reset/92 1022s ok 281 /checksum/MD5/reset/93 1022s ok 282 /checksum/MD5/reset/94 1022s ok 283 /checksum/MD5/reset/95 1022s ok 284 /checksum/MD5/reset/96 1022s ok 285 /checksum/MD5/reset/97 1022s ok 286 /checksum/MD5/reset/98 1022s ok 287 /checksum/MD5/reset/99 1022s ok 288 /checksum/MD5/reset/100 1022s ok 289 /checksum/MD5/reset/101 1022s ok 290 /checksum/MD5/reset/102 1022s ok 291 /checksum/MD5/reset/103 1022s ok 292 /checksum/MD5/reset/104 1022s ok 293 /checksum/MD5/reset/105 1022s ok 294 /checksum/MD5/reset/106 1022s ok 295 /checksum/MD5/reset/107 1022s ok 296 /checksum/MD5/reset/108 1022s ok 297 /checksum/MD5/reset/109 1022s ok 298 /checksum/MD5/reset/110 1022s ok 299 /checksum/MD5/reset/111 1022s ok 300 /checksum/MD5/reset/112 1022s ok 301 /checksum/MD5/reset/113 1022s ok 302 /checksum/MD5/reset/114 1022s ok 303 /checksum/MD5/reset/115 1022s ok 304 /checksum/MD5/reset/116 1022s ok 305 /checksum/MD5/reset/117 1022s ok 306 /checksum/MD5/reset/118 1022s ok 307 /checksum/MD5/reset/119 1022s ok 308 /checksum/MD5/reset/120 1022s ok 309 /checksum/MD5/reset/121 1022s ok 310 /checksum/MD5/reset/122 1022s ok 311 /checksum/MD5/reset/123 1022s ok 312 /checksum/MD5/reset/124 1022s ok 313 /checksum/MD5/reset/125 1022s ok 314 /checksum/MD5/reset/126 1022s ok 315 /checksum/MD5/reset/127 1022s ok 316 /checksum/MD5/reset/128 1022s ok 317 /checksum/MD5/reset/129 1022s ok 318 /checksum/MD5/reset/130 1022s ok 319 /checksum/MD5/reset/131 1022s ok 320 /checksum/MD5/reset/132 1022s ok 321 /checksum/MD5/reset/133 1022s ok 322 /checksum/MD5/reset/134 1022s ok 323 /checksum/MD5/reset/135 1022s ok 324 /checksum/MD5/reset/136 1022s ok 325 /checksum/MD5/reset/137 1022s ok 326 /checksum/MD5/reset/138 1022s ok 327 /checksum/MD5/reset/139 1022s ok 328 /checksum/MD5/reset/140 1022s ok 329 /checksum/MD5/reset/141 1022s ok 330 /checksum/MD5/reset/142 1022s ok 331 /checksum/MD5/reset/143 1022s ok 332 /checksum/MD5/reset/144 1022s ok 333 /checksum/MD5/reset/145 1022s ok 334 /checksum/MD5/reset/146 1022s ok 335 /checksum/MD5/reset/147 1022s ok 336 /checksum/MD5/reset/148 1022s ok 337 /checksum/MD5/reset/149 1022s ok 338 /checksum/MD5/reset/150 1022s ok 339 /checksum/MD5/reset/151 1022s ok 340 /checksum/MD5/reset/152 1022s ok 341 /checksum/MD5/reset/153 1022s ok 342 /checksum/MD5/reset/154 1022s ok 343 /checksum/MD5/reset/155 1022s ok 344 /checksum/MD5/reset/156 1022s ok 345 /checksum/MD5/reset/157 1022s ok 346 /checksum/MD5/reset/158 1022s ok 347 /checksum/MD5/reset/159 1022s ok 348 /checksum/MD5/reset/160 1022s ok 349 /checksum/MD5/reset/161 1022s ok 350 /checksum/MD5/reset/162 1022s ok 351 /checksum/MD5/reset/163 1022s ok 352 /checksum/MD5/reset/164 1022s ok 353 /checksum/MD5/reset/165 1022s ok 354 /checksum/MD5/reset/166 1022s ok 355 /checksum/MD5/reset/167 1022s ok 356 /checksum/MD5/reset/168 1022s ok 357 /checksum/MD5/reset/169 1022s ok 358 /checksum/MD5/reset/170 1022s ok 359 /checksum/MD5/reset/171 1022s ok 360 /checksum/MD5/reset/172 1022s ok 361 /checksum/MD5/reset/173 1022s ok 362 /checksum/MD5/reset/174 1022s ok 363 /checksum/MD5/reset/175 1022s ok 364 /checksum/MD5/reset/176 1022s ok 365 /checksum/MD5/reset/177 1022s ok 366 /checksum/MD5/reset/178 1022s ok 367 /checksum/MD5/reset/179 1022s ok 368 /checksum/MD5/reset/180 1022s ok 369 /checksum/MD5/reset/181 1022s ok 370 /checksum/MD5/reset/182 1022s ok 371 /checksum/MD5/reset/183 1022s # End of reset tests 1022s # End of MD5 tests 1022s # Start of SHA1 tests 1022s ok 372 /checksum/SHA1/0 1022s ok 373 /checksum/SHA1/1 1022s ok 374 /checksum/SHA1/2 1022s ok 375 /checksum/SHA1/3 1022s ok 376 /checksum/SHA1/4 1022s ok 377 /checksum/SHA1/5 1022s ok 378 /checksum/SHA1/6 1022s ok 379 /checksum/SHA1/7 1022s ok 380 /checksum/SHA1/8 1022s ok 381 /checksum/SHA1/9 1022s ok 382 /checksum/SHA1/10 1022s ok 383 /checksum/SHA1/11 1022s ok 384 /checksum/SHA1/12 1022s ok 385 /checksum/SHA1/13 1022s ok 386 /checksum/SHA1/14 1022s ok 387 /checksum/SHA1/15 1022s ok 388 /checksum/SHA1/16 1022s ok 389 /checksum/SHA1/17 1022s ok 390 /checksum/SHA1/18 1022s ok 391 /checksum/SHA1/19 1022s ok 392 /checksum/SHA1/20 1022s ok 393 /checksum/SHA1/21 1022s ok 394 /checksum/SHA1/22 1022s ok 395 /checksum/SHA1/23 1022s ok 396 /checksum/SHA1/24 1022s ok 397 /checksum/SHA1/25 1022s ok 398 /checksum/SHA1/26 1022s ok 399 /checksum/SHA1/27 1022s ok 400 /checksum/SHA1/28 1022s ok 401 /checksum/SHA1/29 1022s ok 402 /checksum/SHA1/30 1022s ok 403 /checksum/SHA1/31 1022s ok 404 /checksum/SHA1/32 1022s ok 405 /checksum/SHA1/33 1022s ok 406 /checksum/SHA1/34 1022s ok 407 /checksum/SHA1/35 1022s ok 408 /checksum/SHA1/36 1022s ok 409 /checksum/SHA1/37 1022s ok 410 /checksum/SHA1/38 1022s ok 411 /checksum/SHA1/39 1022s ok 412 /checksum/SHA1/40 1022s ok 413 /checksum/SHA1/41 1022s ok 414 /checksum/SHA1/42 1022s ok 415 /checksum/SHA1/43 1022s ok 416 /checksum/SHA1/44 1022s ok 417 /checksum/SHA1/45 1022s ok 418 /checksum/SHA1/46 1022s ok 419 /checksum/SHA1/47 1022s ok 420 /checksum/SHA1/48 1022s ok 421 /checksum/SHA1/49 1022s ok 422 /checksum/SHA1/50 1022s ok 423 /checksum/SHA1/51 1022s ok 424 /checksum/SHA1/52 1022s ok 425 /checksum/SHA1/53 1022s ok 426 /checksum/SHA1/54 1022s ok 427 /checksum/SHA1/55 1022s ok 428 /checksum/SHA1/56 1022s ok 429 /checksum/SHA1/57 1022s ok 430 /checksum/SHA1/58 1022s ok 431 /checksum/SHA1/59 1022s ok 432 /checksum/SHA1/60 1022s ok 433 /checksum/SHA1/61 1022s ok 434 /checksum/SHA1/62 1022s ok 435 /checksum/SHA1/63 1022s ok 436 /checksum/SHA1/64 1022s ok 437 /checksum/SHA1/65 1022s ok 438 /checksum/SHA1/66 1022s ok 439 /checksum/SHA1/67 1022s ok 440 /checksum/SHA1/68 1022s ok 441 /checksum/SHA1/69 1022s ok 442 /checksum/SHA1/70 1022s ok 443 /checksum/SHA1/71 1022s ok 444 /checksum/SHA1/72 1022s ok 445 /checksum/SHA1/73 1022s ok 446 /checksum/SHA1/74 1022s ok 447 /checksum/SHA1/75 1022s ok 448 /checksum/SHA1/76 1022s ok 449 /checksum/SHA1/77 1022s ok 450 /checksum/SHA1/78 1022s ok 451 /checksum/SHA1/79 1022s ok 452 /checksum/SHA1/80 1022s ok 453 /checksum/SHA1/81 1022s ok 454 /checksum/SHA1/82 1022s ok 455 /checksum/SHA1/83 1022s ok 456 /checksum/SHA1/84 1022s ok 457 /checksum/SHA1/85 1022s ok 458 /checksum/SHA1/86 1022s ok 459 /checksum/SHA1/87 1022s ok 460 /checksum/SHA1/88 1022s ok 461 /checksum/SHA1/89 1022s ok 462 /checksum/SHA1/90 1022s ok 463 /checksum/SHA1/91 1022s ok 464 /checksum/SHA1/92 1022s ok 465 /checksum/SHA1/93 1022s ok 466 /checksum/SHA1/94 1022s ok 467 /checksum/SHA1/95 1022s ok 468 /checksum/SHA1/96 1022s ok 469 /checksum/SHA1/97 1022s ok 470 /checksum/SHA1/98 1022s ok 471 /checksum/SHA1/99 1022s ok 472 /checksum/SHA1/100 1022s ok 473 /checksum/SHA1/101 1022s ok 474 /checksum/SHA1/102 1022s ok 475 /checksum/SHA1/103 1022s ok 476 /checksum/SHA1/104 1022s ok 477 /checksum/SHA1/105 1022s ok 478 /checksum/SHA1/106 1022s ok 479 /checksum/SHA1/107 1022s ok 480 /checksum/SHA1/108 1022s ok 481 /checksum/SHA1/109 1022s ok 482 /checksum/SHA1/110 1022s ok 483 /checksum/SHA1/111 1022s ok 484 /checksum/SHA1/112 1022s ok 485 /checksum/SHA1/113 1022s ok 486 /checksum/SHA1/114 1022s ok 487 /checksum/SHA1/115 1022s ok 488 /checksum/SHA1/116 1022s ok 489 /checksum/SHA1/117 1022s ok 490 /checksum/SHA1/118 1022s ok 491 /checksum/SHA1/119 1022s ok 492 /checksum/SHA1/120 1022s ok 493 /checksum/SHA1/121 1022s ok 494 /checksum/SHA1/122 1022s ok 495 /checksum/SHA1/123 1022s ok 496 /checksum/SHA1/124 1022s ok 497 /checksum/SHA1/125 1022s ok 498 /checksum/SHA1/126 1022s ok 499 /checksum/SHA1/127 1022s ok 500 /checksum/SHA1/128 1022s ok 501 /checksum/SHA1/129 1022s ok 502 /checksum/SHA1/130 1022s ok 503 /checksum/SHA1/131 1022s ok 504 /checksum/SHA1/132 1022s ok 505 /checksum/SHA1/133 1022s ok 506 /checksum/SHA1/134 1022s ok 507 /checksum/SHA1/135 1022s ok 508 /checksum/SHA1/136 1022s ok 509 /checksum/SHA1/137 1022s ok 510 /checksum/SHA1/138 1022s ok 511 /checksum/SHA1/139 1022s ok 512 /checksum/SHA1/140 1022s ok 513 /checksum/SHA1/141 1022s ok 514 /checksum/SHA1/142 1022s ok 515 /checksum/SHA1/143 1022s ok 516 /checksum/SHA1/144 1022s ok 517 /checksum/SHA1/145 1022s ok 518 /checksum/SHA1/146 1022s ok 519 /checksum/SHA1/147 1022s ok 520 /checksum/SHA1/148 1022s ok 521 /checksum/SHA1/149 1022s ok 522 /checksum/SHA1/150 1022s ok 523 /checksum/SHA1/151 1022s ok 524 /checksum/SHA1/152 1022s ok 525 /checksum/SHA1/153 1022s ok 526 /checksum/SHA1/154 1022s ok 527 /checksum/SHA1/155 1022s ok 528 /checksum/SHA1/156 1022s ok 529 /checksum/SHA1/157 1022s ok 530 /checksum/SHA1/158 1022s ok 531 /checksum/SHA1/159 1022s ok 532 /checksum/SHA1/160 1022s ok 533 /checksum/SHA1/161 1022s ok 534 /checksum/SHA1/162 1022s ok 535 /checksum/SHA1/163 1022s ok 536 /checksum/SHA1/164 1022s ok 537 /checksum/SHA1/165 1022s ok 538 /checksum/SHA1/166 1022s ok 539 /checksum/SHA1/167 1022s ok 540 /checksum/SHA1/168 1022s ok 541 /checksum/SHA1/169 1022s ok 542 /checksum/SHA1/170 1022s ok 543 /checksum/SHA1/171 1022s ok 544 /checksum/SHA1/172 1022s ok 545 /checksum/SHA1/173 1022s ok 546 /checksum/SHA1/174 1022s ok 547 /checksum/SHA1/175 1022s ok 548 /checksum/SHA1/176 1022s ok 549 /checksum/SHA1/177 1022s ok 550 /checksum/SHA1/178 1022s ok 551 /checksum/SHA1/179 1022s ok 552 /checksum/SHA1/180 1022s ok 553 /checksum/SHA1/181 1022s ok 554 /checksum/SHA1/182 1022s ok 555 /checksum/SHA1/183 1022s ok 556 /checksum/SHA1/string 1022s ok 557 /checksum/SHA1/bytes 1022s # Start of reset tests 1022s ok 558 /checksum/SHA1/reset/0 1022s ok 559 /checksum/SHA1/reset/1 1022s ok 560 /checksum/SHA1/reset/2 1022s ok 561 /checksum/SHA1/reset/3 1022s ok 562 /checksum/SHA1/reset/4 1022s ok 563 /checksum/SHA1/reset/5 1022s ok 564 /checksum/SHA1/reset/6 1022s ok 565 /checksum/SHA1/reset/7 1022s ok 566 /checksum/SHA1/reset/8 1022s ok 567 /checksum/SHA1/reset/9 1022s ok 568 /checksum/SHA1/reset/10 1022s ok 569 /checksum/SHA1/reset/11 1022s ok 570 /checksum/SHA1/reset/12 1022s ok 571 /checksum/SHA1/reset/13 1022s ok 572 /checksum/SHA1/reset/14 1022s ok 573 /checksum/SHA1/reset/15 1022s ok 574 /checksum/SHA1/reset/16 1022s ok 575 /checksum/SHA1/reset/17 1022s ok 576 /checksum/SHA1/reset/18 1022s ok 577 /checksum/SHA1/reset/19 1022s ok 578 /checksum/SHA1/reset/20 1022s ok 579 /checksum/SHA1/reset/21 1022s ok 580 /checksum/SHA1/reset/22 1022s ok 581 /checksum/SHA1/reset/23 1022s ok 582 /checksum/SHA1/reset/24 1022s ok 583 /checksum/SHA1/reset/25 1022s ok 584 /checksum/SHA1/reset/26 1022s ok 585 /checksum/SHA1/reset/27 1022s ok 586 /checksum/SHA1/reset/28 1022s ok 587 /checksum/SHA1/reset/29 1022s ok 588 /checksum/SHA1/reset/30 1022s ok 589 /checksum/SHA1/reset/31 1022s ok 590 /checksum/SHA1/reset/32 1022s ok 591 /checksum/SHA1/reset/33 1022s ok 592 /checksum/SHA1/reset/34 1022s ok 593 /checksum/SHA1/reset/35 1022s ok 594 /checksum/SHA1/reset/36 1022s ok 595 /checksum/SHA1/reset/37 1022s ok 596 /checksum/SHA1/reset/38 1022s ok 597 /checksum/SHA1/reset/39 1022s ok 598 /checksum/SHA1/reset/40 1022s ok 599 /checksum/SHA1/reset/41 1022s ok 600 /checksum/SHA1/reset/42 1022s ok 601 /checksum/SHA1/reset/43 1022s ok 602 /checksum/SHA1/reset/44 1022s ok 603 /checksum/SHA1/reset/45 1022s ok 604 /checksum/SHA1/reset/46 1022s ok 605 /checksum/SHA1/reset/47 1022s ok 606 /checksum/SHA1/reset/48 1022s ok 607 /checksum/SHA1/reset/49 1022s ok 608 /checksum/SHA1/reset/50 1022s ok 609 /checksum/SHA1/reset/51 1022s ok 610 /checksum/SHA1/reset/52 1022s ok 611 /checksum/SHA1/reset/53 1022s ok 612 /checksum/SHA1/reset/54 1022s ok 613 /checksum/SHA1/reset/55 1022s ok 614 /checksum/SHA1/reset/56 1022s ok 615 /checksum/SHA1/reset/57 1022s ok 616 /checksum/SHA1/reset/58 1022s ok 617 /checksum/SHA1/reset/59 1022s ok 618 /checksum/SHA1/reset/60 1022s ok 619 /checksum/SHA1/reset/61 1022s ok 620 /checksum/SHA1/reset/62 1022s ok 621 /checksum/SHA1/reset/63 1022s ok 622 /checksum/SHA1/reset/64 1022s ok 623 /checksum/SHA1/reset/65 1022s ok 624 /checksum/SHA1/reset/66 1022s ok 625 /checksum/SHA1/reset/67 1022s ok 626 /checksum/SHA1/reset/68 1022s ok 627 /checksum/SHA1/reset/69 1022s ok 628 /checksum/SHA1/reset/70 1022s ok 629 /checksum/SHA1/reset/71 1022s ok 630 /checksum/SHA1/reset/72 1022s ok 631 /checksum/SHA1/reset/73 1022s ok 632 /checksum/SHA1/reset/74 1022s ok 633 /checksum/SHA1/reset/75 1022s ok 634 /checksum/SHA1/reset/76 1022s ok 635 /checksum/SHA1/reset/77 1022s ok 636 /checksum/SHA1/reset/78 1022s ok 637 /checksum/SHA1/reset/79 1022s ok 638 /checksum/SHA1/reset/80 1022s ok 639 /checksum/SHA1/reset/81 1022s ok 640 /checksum/SHA1/reset/82 1022s ok 641 /checksum/SHA1/reset/83 1022s ok 642 /checksum/SHA1/reset/84 1022s ok 643 /checksum/SHA1/reset/85 1022s ok 644 /checksum/SHA1/reset/86 1022s ok 645 /checksum/SHA1/reset/87 1022s ok 646 /checksum/SHA1/reset/88 1022s ok 647 /checksum/SHA1/reset/89 1022s ok 648 /checksum/SHA1/reset/90 1022s ok 649 /checksum/SHA1/reset/91 1022s ok 650 /checksum/SHA1/reset/92 1022s ok 651 /checksum/SHA1/reset/93 1022s ok 652 /checksum/SHA1/reset/94 1022s ok 653 /checksum/SHA1/reset/95 1022s ok 654 /checksum/SHA1/reset/96 1022s ok 655 /checksum/SHA1/reset/97 1022s ok 656 /checksum/SHA1/reset/98 1022s ok 657 /checksum/SHA1/reset/99 1022s ok 658 /checksum/SHA1/reset/100 1022s ok 659 /checksum/SHA1/reset/101 1022s ok 660 /checksum/SHA1/reset/102 1022s ok 661 /checksum/SHA1/reset/103 1022s ok 662 /checksum/SHA1/reset/104 1022s ok 663 /checksum/SHA1/reset/105 1022s ok 664 /checksum/SHA1/reset/106 1022s ok 665 /checksum/SHA1/reset/107 1022s ok 666 /checksum/SHA1/reset/108 1022s ok 667 /checksum/SHA1/reset/109 1022s ok 668 /checksum/SHA1/reset/110 1022s ok 669 /checksum/SHA1/reset/111 1022s ok 670 /checksum/SHA1/reset/112 1022s ok 671 /checksum/SHA1/reset/113 1022s ok 672 /checksum/SHA1/reset/114 1022s ok 673 /checksum/SHA1/reset/115 1022s ok 674 /checksum/SHA1/reset/116 1022s ok 675 /checksum/SHA1/reset/117 1022s ok 676 /checksum/SHA1/reset/118 1022s ok 677 /checksum/SHA1/reset/119 1022s ok 678 /checksum/SHA1/reset/120 1022s ok 679 /checksum/SHA1/reset/121 1022s ok 680 /checksum/SHA1/reset/122 1022s ok 681 /checksum/SHA1/reset/123 1022s ok 682 /checksum/SHA1/reset/124 1022s ok 683 /checksum/SHA1/reset/125 1022s ok 684 /checksum/SHA1/reset/126 1022s ok 685 /checksum/SHA1/reset/127 1022s ok 686 /checksum/SHA1/reset/128 1022s ok 687 /checksum/SHA1/reset/129 1022s ok 688 /checksum/SHA1/reset/130 1022s ok 689 /checksum/SHA1/reset/131 1022s ok 690 /checksum/SHA1/reset/132 1022s ok 691 /checksum/SHA1/reset/133 1022s ok 692 /checksum/SHA1/reset/134 1022s ok 693 /checksum/SHA1/reset/135 1022s ok 694 /checksum/SHA1/reset/136 1022s ok 695 /checksum/SHA1/reset/137 1022s ok 696 /checksum/SHA1/reset/138 1022s ok 697 /checksum/SHA1/reset/139 1022s ok 698 /checksum/SHA1/reset/140 1022s ok 699 /checksum/SHA1/reset/141 1022s ok 700 /checksum/SHA1/reset/142 1022s ok 701 /checksum/SHA1/reset/143 1022s ok 702 /checksum/SHA1/reset/144 1022s ok 703 /checksum/SHA1/reset/145 1022s ok 704 /checksum/SHA1/reset/146 1022s ok 705 /checksum/SHA1/reset/147 1022s ok 706 /checksum/SHA1/reset/148 1022s ok 707 /checksum/SHA1/reset/149 1022s ok 708 /checksum/SHA1/reset/150 1022s ok 709 /checksum/SHA1/reset/151 1022s ok 710 /checksum/SHA1/reset/152 1022s ok 711 /checksum/SHA1/reset/153 1022s ok 712 /checksum/SHA1/reset/154 1022s ok 713 /checksum/SHA1/reset/155 1022s ok 714 /checksum/SHA1/reset/156 1022s ok 715 /checksum/SHA1/reset/157 1022s ok 716 /checksum/SHA1/reset/158 1022s ok 717 /checksum/SHA1/reset/159 1022s ok 718 /checksum/SHA1/reset/160 1022s ok 719 /checksum/SHA1/reset/161 1022s ok 720 /checksum/SHA1/reset/162 1022s ok 721 /checksum/SHA1/reset/163 1022s ok 722 /checksum/SHA1/reset/164 1022s ok 723 /checksum/SHA1/reset/165 1022s ok 724 /checksum/SHA1/reset/166 1022s ok 725 /checksum/SHA1/reset/167 1022s ok 726 /checksum/SHA1/reset/168 1022s ok 727 /checksum/SHA1/reset/169 1022s ok 728 /checksum/SHA1/reset/170 1022s ok 729 /checksum/SHA1/reset/171 1022s ok 730 /checksum/SHA1/reset/172 1022s ok 731 /checksum/SHA1/reset/173 1022s ok 732 /checksum/SHA1/reset/174 1022s ok 733 /checksum/SHA1/reset/175 1022s ok 734 /checksum/SHA1/reset/176 1022s ok 735 /checksum/SHA1/reset/177 1022s ok 736 /checksum/SHA1/reset/178 1022s ok 737 /checksum/SHA1/reset/179 1022s ok 738 /checksum/SHA1/reset/180 1022s ok 739 /checksum/SHA1/reset/181 1022s ok 740 /checksum/SHA1/reset/182 1022s ok 741 /checksum/SHA1/reset/183 1022s # End of reset tests 1022s # End of SHA1 tests 1022s # Start of SHA256 tests 1022s ok 742 /checksum/SHA256/0 1022s ok 743 /checksum/SHA256/1 1022s ok 744 /checksum/SHA256/2 1022s ok 745 /checksum/SHA256/3 1022s ok 746 /checksum/SHA256/4 1022s ok 747 /checksum/SHA256/5 1022s ok 748 /checksum/SHA256/6 1022s ok 749 /checksum/SHA256/7 1022s ok 750 /checksum/SHA256/8 1022s ok 751 /checksum/SHA256/9 1022s ok 752 /checksum/SHA256/10 1022s ok 753 /checksum/SHA256/11 1022s ok 754 /checksum/SHA256/12 1022s ok 755 /checksum/SHA256/13 1022s ok 756 /checksum/SHA256/14 1022s ok 757 /checksum/SHA256/15 1022s ok 758 /checksum/SHA256/16 1022s ok 759 /checksum/SHA256/17 1022s ok 760 /checksum/SHA256/18 1022s ok 761 /checksum/SHA256/19 1022s ok 762 /checksum/SHA256/20 1022s ok 763 /checksum/SHA256/21 1022s ok 764 /checksum/SHA256/22 1022s ok 765 /checksum/SHA256/23 1022s ok 766 /checksum/SHA256/24 1022s ok 767 /checksum/SHA256/25 1022s ok 768 /checksum/SHA256/26 1022s ok 769 /checksum/SHA256/27 1022s ok 770 /checksum/SHA256/28 1022s ok 771 /checksum/SHA256/29 1022s ok 772 /checksum/SHA256/30 1022s ok 773 /checksum/SHA256/31 1022s ok 774 /checksum/SHA256/32 1022s ok 775 /checksum/SHA256/33 1022s ok 776 /checksum/SHA256/34 1022s ok 777 /checksum/SHA256/35 1022s ok 778 /checksum/SHA256/36 1022s ok 779 /checksum/SHA256/37 1022s ok 780 /checksum/SHA256/38 1022s ok 781 /checksum/SHA256/39 1022s ok 782 /checksum/SHA256/40 1022s ok 783 /checksum/SHA256/41 1022s ok 784 /checksum/SHA256/42 1022s ok 785 /checksum/SHA256/43 1022s ok 786 /checksum/SHA256/44 1022s ok 787 /checksum/SHA256/45 1022s ok 788 /checksum/SHA256/46 1022s ok 789 /checksum/SHA256/47 1022s ok 790 /checksum/SHA256/48 1022s ok 791 /checksum/SHA256/49 1022s ok 792 /checksum/SHA256/50 1022s ok 793 /checksum/SHA256/51 1022s ok 794 /checksum/SHA256/52 1022s ok 795 /checksum/SHA256/53 1022s ok 796 /checksum/SHA256/54 1022s ok 797 /checksum/SHA256/55 1022s ok 798 /checksum/SHA256/56 1022s ok 799 /checksum/SHA256/57 1022s ok 800 /checksum/SHA256/58 1022s ok 801 /checksum/SHA256/59 1022s ok 802 /checksum/SHA256/60 1022s ok 803 /checksum/SHA256/61 1022s ok 804 /checksum/SHA256/62 1022s ok 805 /checksum/SHA256/63 1022s ok 806 /checksum/SHA256/64 1022s ok 807 /checksum/SHA256/65 1022s ok 808 /checksum/SHA256/66 1022s ok 809 /checksum/SHA256/67 1022s ok 810 /checksum/SHA256/68 1022s ok 811 /checksum/SHA256/69 1022s ok 812 /checksum/SHA256/70 1022s ok 813 /checksum/SHA256/71 1022s ok 814 /checksum/SHA256/72 1022s ok 815 /checksum/SHA256/73 1022s ok 816 /checksum/SHA256/74 1022s ok 817 /checksum/SHA256/75 1022s ok 818 /checksum/SHA256/76 1022s ok 819 /checksum/SHA256/77 1022s ok 820 /checksum/SHA256/78 1022s ok 821 /checksum/SHA256/79 1022s ok 822 /checksum/SHA256/80 1022s ok 823 /checksum/SHA256/81 1022s ok 824 /checksum/SHA256/82 1022s ok 825 /checksum/SHA256/83 1022s ok 826 /checksum/SHA256/84 1022s ok 827 /checksum/SHA256/85 1022s ok 828 /checksum/SHA256/86 1022s ok 829 /checksum/SHA256/87 1022s ok 830 /checksum/SHA256/88 1022s ok 831 /checksum/SHA256/89 1022s ok 832 /checksum/SHA256/90 1022s ok 833 /checksum/SHA256/91 1022s ok 834 /checksum/SHA256/92 1022s ok 835 /checksum/SHA256/93 1022s ok 836 /checksum/SHA256/94 1022s ok 837 /checksum/SHA256/95 1022s ok 838 /checksum/SHA256/96 1022s ok 839 /checksum/SHA256/97 1022s ok 840 /checksum/SHA256/98 1022s ok 841 /checksum/SHA256/99 1022s ok 842 /checksum/SHA256/100 1022s ok 843 /checksum/SHA256/101 1022s ok 844 /checksum/SHA256/102 1022s ok 845 /checksum/SHA256/103 1022s ok 846 /checksum/SHA256/104 1022s ok 847 /checksum/SHA256/105 1022s ok 848 /checksum/SHA256/106 1022s ok 849 /checksum/SHA256/107 1022s ok 850 /checksum/SHA256/108 1022s ok 851 /checksum/SHA256/109 1022s ok 852 /checksum/SHA256/110 1022s ok 853 /checksum/SHA256/111 1022s ok 854 /checksum/SHA256/112 1022s ok 855 /checksum/SHA256/113 1022s ok 856 /checksum/SHA256/114 1022s ok 857 /checksum/SHA256/115 1022s ok 858 /checksum/SHA256/116 1022s ok 859 /checksum/SHA256/117 1022s ok 860 /checksum/SHA256/118 1022s ok 861 /checksum/SHA256/119 1022s ok 862 /checksum/SHA256/120 1022s ok 863 /checksum/SHA256/121 1022s ok 864 /checksum/SHA256/122 1022s ok 865 /checksum/SHA256/123 1022s ok 866 /checksum/SHA256/124 1022s ok 867 /checksum/SHA256/125 1022s ok 868 /checksum/SHA256/126 1022s ok 869 /checksum/SHA256/127 1022s ok 870 /checksum/SHA256/128 1022s ok 871 /checksum/SHA256/129 1022s ok 872 /checksum/SHA256/130 1022s ok 873 /checksum/SHA256/131 1022s ok 874 /checksum/SHA256/132 1022s ok 875 /checksum/SHA256/133 1022s ok 876 /checksum/SHA256/134 1022s ok 877 /checksum/SHA256/135 1022s ok 878 /checksum/SHA256/136 1022s ok 879 /checksum/SHA256/137 1022s ok 880 /checksum/SHA256/138 1022s ok 881 /checksum/SHA256/139 1022s ok 882 /checksum/SHA256/140 1022s ok 883 /checksum/SHA256/141 1022s ok 884 /checksum/SHA256/142 1022s ok 885 /checksum/SHA256/143 1022s ok 886 /checksum/SHA256/144 1022s ok 887 /checksum/SHA256/145 1022s ok 888 /checksum/SHA256/146 1022s ok 889 /checksum/SHA256/147 1022s ok 890 /checksum/SHA256/148 1022s ok 891 /checksum/SHA256/149 1022s ok 892 /checksum/SHA256/150 1022s ok 893 /checksum/SHA256/151 1022s ok 894 /checksum/SHA256/152 1022s ok 895 /checksum/SHA256/153 1022s ok 896 /checksum/SHA256/154 1022s ok 897 /checksum/SHA256/155 1022s ok 898 /checksum/SHA256/156 1022s ok 899 /checksum/SHA256/157 1022s ok 900 /checksum/SHA256/158 1022s ok 901 /checksum/SHA256/159 1022s ok 902 /checksum/SHA256/160 1022s ok 903 /checksum/SHA256/161 1022s ok 904 /checksum/SHA256/162 1022s ok 905 /checksum/SHA256/163 1022s ok 906 /checksum/SHA256/164 1022s ok 907 /checksum/SHA256/165 1022s ok 908 /checksum/SHA256/166 1022s ok 909 /checksum/SHA256/167 1022s ok 910 /checksum/SHA256/168 1022s ok 911 /checksum/SHA256/169 1022s ok 912 /checksum/SHA256/170 1022s ok 913 /checksum/SHA256/171 1022s ok 914 /checksum/SHA256/172 1022s ok 915 /checksum/SHA256/173 1022s ok 916 /checksum/SHA256/174 1022s ok 917 /checksum/SHA256/175 1022s ok 918 /checksum/SHA256/176 1022s ok 919 /checksum/SHA256/177 1022s ok 920 /checksum/SHA256/178 1022s ok 921 /checksum/SHA256/179 1022s ok 922 /checksum/SHA256/180 1022s ok 923 /checksum/SHA256/181 1022s ok 924 /checksum/SHA256/182 1022s ok 925 /checksum/SHA256/183 1022s ok 926 /checksum/SHA256/string 1022s ok 927 /checksum/SHA256/bytes 1022s # Start of reset tests 1022s ok 928 /checksum/SHA256/reset/0 1022s ok 929 /checksum/SHA256/reset/1 1022s ok 930 /checksum/SHA256/reset/2 1022s ok 931 /checksum/SHA256/reset/3 1022s ok 932 /checksum/SHA256/reset/4 1022s ok 933 /checksum/SHA256/reset/5 1022s ok 934 /checksum/SHA256/reset/6 1022s ok 935 /checksum/SHA256/reset/7 1022s ok 936 /checksum/SHA256/reset/8 1022s ok 937 /checksum/SHA256/reset/9 1022s ok 938 /checksum/SHA256/reset/10 1022s ok 939 /checksum/SHA256/reset/11 1022s ok 940 /checksum/SHA256/reset/12 1022s ok 941 /checksum/SHA256/reset/13 1022s ok 942 /checksum/SHA256/reset/14 1022s ok 943 /checksum/SHA256/reset/15 1022s ok 944 /checksum/SHA256/reset/16 1022s ok 945 /checksum/SHA256/reset/17 1022s ok 946 /checksum/SHA256/reset/18 1022s ok 947 /checksum/SHA256/reset/19 1022s ok 948 /checksum/SHA256/reset/20 1022s ok 949 /checksum/SHA256/reset/21 1022s ok 950 /checksum/SHA256/reset/22 1022s ok 951 /checksum/SHA256/reset/23 1022s ok 952 /checksum/SHA256/reset/24 1022s ok 953 /checksum/SHA256/reset/25 1022s ok 954 /checksum/SHA256/reset/26 1022s ok 955 /checksum/SHA256/reset/27 1022s ok 956 /checksum/SHA256/reset/28 1022s ok 957 /checksum/SHA256/reset/29 1022s ok 958 /checksum/SHA256/reset/30 1022s ok 959 /checksum/SHA256/reset/31 1022s ok 960 /checksum/SHA256/reset/32 1022s ok 961 /checksum/SHA256/reset/33 1022s ok 962 /checksum/SHA256/reset/34 1022s ok 963 /checksum/SHA256/reset/35 1022s ok 964 /checksum/SHA256/reset/36 1022s ok 965 /checksum/SHA256/reset/37 1022s ok 966 /checksum/SHA256/reset/38 1022s ok 967 /checksum/SHA256/reset/39 1022s ok 968 /checksum/SHA256/reset/40 1022s ok 969 /checksum/SHA256/reset/41 1022s ok 970 /checksum/SHA256/reset/42 1022s ok 971 /checksum/SHA256/reset/43 1022s ok 972 /checksum/SHA256/reset/44 1022s ok 973 /checksum/SHA256/reset/45 1022s ok 974 /checksum/SHA256/reset/46 1022s ok 975 /checksum/SHA256/reset/47 1022s ok 976 /checksum/SHA256/reset/48 1022s ok 977 /checksum/SHA256/reset/49 1022s ok 978 /checksum/SHA256/reset/50 1022s ok 979 /checksum/SHA256/reset/51 1022s ok 980 /checksum/SHA256/reset/52 1022s ok 981 /checksum/SHA256/reset/53 1022s ok 982 /checksum/SHA256/reset/54 1022s ok 983 /checksum/SHA256/reset/55 1022s ok 984 /checksum/SHA256/reset/56 1022s ok 985 /checksum/SHA256/reset/57 1022s ok 986 /checksum/SHA256/reset/58 1022s ok 987 /checksum/SHA256/reset/59 1022s ok 988 /checksum/SHA256/reset/60 1022s ok 989 /checksum/SHA256/reset/61 1022s ok 990 /checksum/SHA256/reset/62 1022s ok 991 /checksum/SHA256/reset/63 1022s ok 992 /checksum/SHA256/reset/64 1022s ok 993 /checksum/SHA256/reset/65 1022s ok 994 /checksum/SHA256/reset/66 1022s ok 995 /checksum/SHA256/reset/67 1022s ok 996 /checksum/SHA256/reset/68 1022s ok 997 /checksum/SHA256/reset/69 1022s ok 998 /checksum/SHA256/reset/70 1022s ok 999 /checksum/SHA256/reset/71 1022s ok 1000 /checksum/SHA256/reset/72 1022s ok 1001 /checksum/SHA256/reset/73 1022s ok 1002 /checksum/SHA256/reset/74 1022s ok 1003 /checksum/SHA256/reset/75 1022s ok 1004 /checksum/SHA256/reset/76 1022s ok 1005 /checksum/SHA256/reset/77 1022s ok 1006 /checksum/SHA256/reset/78 1022s ok 1007 /checksum/SHA256/reset/79 1022s ok 1008 /checksum/SHA256/reset/80 1022s ok 1009 /checksum/SHA256/reset/81 1022s ok 1010 /checksum/SHA256/reset/82 1022s ok 1011 /checksum/SHA256/reset/83 1022s ok 1012 /checksum/SHA256/reset/84 1022s ok 1013 /checksum/SHA256/reset/85 1022s ok 1014 /checksum/SHA256/reset/86 1022s ok 1015 /checksum/SHA256/reset/87 1022s ok 1016 /checksum/SHA256/reset/88 1022s ok 1017 /checksum/SHA256/reset/89 1022s ok 1018 /checksum/SHA256/reset/90 1022s ok 1019 /checksum/SHA256/reset/91 1022s ok 1020 /checksum/SHA256/reset/92 1022s ok 1021 /checksum/SHA256/reset/93 1022s ok 1022 /checksum/SHA256/reset/94 1022s ok 1023 /checksum/SHA256/reset/95 1022s ok 1024 /checksum/SHA256/reset/96 1022s ok 1025 /checksum/SHA256/reset/97 1022s ok 1026 /checksum/SHA256/reset/98 1022s ok 1027 /checksum/SHA256/reset/99 1022s ok 1028 /checksum/SHA256/reset/100 1022s ok 1029 /checksum/SHA256/reset/101 1022s ok 1030 /checksum/SHA256/reset/102 1022s ok 1031 /checksum/SHA256/reset/103 1022s ok 1032 /checksum/SHA256/reset/104 1022s ok 1033 /checksum/SHA256/reset/105 1022s ok 1034 /checksum/SHA256/reset/106 1022s ok 1035 /checksum/SHA256/reset/107 1022s ok 1036 /checksum/SHA256/reset/108 1022s ok 1037 /checksum/SHA256/reset/109 1022s ok 1038 /checksum/SHA256/reset/110 1022s ok 1039 /checksum/SHA256/reset/111 1022s ok 1040 /checksum/SHA256/reset/112 1022s ok 1041 /checksum/SHA256/reset/113 1022s ok 1042 /checksum/SHA256/reset/114 1022s ok 1043 /checksum/SHA256/reset/115 1022s ok 1044 /checksum/SHA256/reset/116 1022s ok 1045 /checksum/SHA256/reset/117 1022s ok 1046 /checksum/SHA256/reset/118 1022s ok 1047 /checksum/SHA256/reset/119 1022s ok 1048 /checksum/SHA256/reset/120 1022s ok 1049 /checksum/SHA256/reset/121 1022s ok 1050 /checksum/SHA256/reset/122 1022s ok 1051 /checksum/SHA256/reset/123 1022s ok 1052 /checksum/SHA256/reset/124 1022s ok 1053 /checksum/SHA256/reset/125 1022s ok 1054 /checksum/SHA256/reset/126 1022s ok 1055 /checksum/SHA256/reset/127 1022s ok 1056 /checksum/SHA256/reset/128 1022s ok 1057 /checksum/SHA256/reset/129 1022s ok 1058 /checksum/SHA256/reset/130 1022s ok 1059 /checksum/SHA256/reset/131 1022s ok 1060 /checksum/SHA256/reset/132 1022s ok 1061 /checksum/SHA256/reset/133 1022s ok 1062 /checksum/SHA256/reset/134 1022s ok 1063 /checksum/SHA256/reset/135 1022s ok 1064 /checksum/SHA256/reset/136 1022s ok 1065 /checksum/SHA256/reset/137 1022s ok 1066 /checksum/SHA256/reset/138 1022s ok 1067 /checksum/SHA256/reset/139 1022s ok 1068 /checksum/SHA256/reset/140 1022s ok 1069 /checksum/SHA256/reset/141 1022s ok 1070 /checksum/SHA256/reset/142 1022s ok 1071 /checksum/SHA256/reset/143 1022s ok 1072 /checksum/SHA256/reset/144 1022s ok 1073 /checksum/SHA256/reset/145 1022s ok 1074 /checksum/SHA256/reset/146 1022s ok 1075 /checksum/SHA256/reset/147 1022s ok 1076 /checksum/SHA256/reset/148 1022s ok 1077 /checksum/SHA256/reset/149 1022s ok 1078 /checksum/SHA256/reset/150 1022s ok 1079 /checksum/SHA256/reset/151 1022s ok 1080 /checksum/SHA256/reset/152 1022s ok 1081 /checksum/SHA256/reset/153 1022s ok 1082 /checksum/SHA256/reset/154 1022s ok 1083 /checksum/SHA256/reset/155 1022s ok 1084 /checksum/SHA256/reset/156 1022s ok 1085 /checksum/SHA256/reset/157 1022s ok 1086 /checksum/SHA256/reset/158 1022s ok 1087 /checksum/SHA256/reset/159 1022s ok 1088 /checksum/SHA256/reset/160 1022s ok 1089 /checksum/SHA256/reset/161 1022s ok 1090 /checksum/SHA256/reset/162 1022s ok 1091 /checksum/SHA256/reset/163 1022s ok 1092 /checksum/SHA256/reset/164 1022s ok 1093 /checksum/SHA256/reset/165 1022s ok 1094 /checksum/SHA256/reset/166 1022s ok 1095 /checksum/SHA256/reset/167 1022s ok 1096 /checksum/SHA256/reset/168 1022s ok 1097 /checksum/SHA256/reset/169 1022s ok 1098 /checksum/SHA256/reset/170 1022s ok 1099 /checksum/SHA256/reset/171 1022s ok 1100 /checksum/SHA256/reset/172 1022s ok 1101 /checksum/SHA256/reset/173 1022s ok 1102 /checksum/SHA256/reset/174 1022s ok 1103 /checksum/SHA256/reset/175 1022s ok 1104 /checksum/SHA256/reset/176 1022s ok 1105 /checksum/SHA256/reset/177 1022s ok 1106 /checksum/SHA256/reset/178 1022s ok 1107 /checksum/SHA256/reset/179 1022s ok 1108 /checksum/SHA256/reset/180 1022s ok 1109 /checksum/SHA256/reset/181 1022s ok 1110 /checksum/SHA256/reset/182 1022s ok 1111 /checksum/SHA256/reset/183 1022s # End of reset tests 1022s # End of SHA256 tests 1022s # Start of SHA384 tests 1022s ok 1112 /checksum/SHA384/0 1022s ok 1113 /checksum/SHA384/1 1022s ok 1114 /checksum/SHA384/2 1022s ok 1115 /checksum/SHA384/3 1022s ok 1116 /checksum/SHA384/4 1022s ok 1117 /checksum/SHA384/5 1022s ok 1118 /checksum/SHA384/6 1022s ok 1119 /checksum/SHA384/7 1022s ok 1120 /checksum/SHA384/8 1022s ok 1121 /checksum/SHA384/9 1022s ok 1122 /checksum/SHA384/10 1022s ok 1123 /checksum/SHA384/11 1022s ok 1124 /checksum/SHA384/12 1022s ok 1125 /checksum/SHA384/13 1022s ok 1126 /checksum/SHA384/14 1022s ok 1127 /checksum/SHA384/15 1022s ok 1128 /checksum/SHA384/16 1022s ok 1129 /checksum/SHA384/17 1022s ok 1130 /checksum/SHA384/18 1022s ok 1131 /checksum/SHA384/19 1022s ok 1132 /checksum/SHA384/20 1022s ok 1133 /checksum/SHA384/21 1022s ok 1134 /checksum/SHA384/22 1022s ok 1135 /checksum/SHA384/23 1022s ok 1136 /checksum/SHA384/24 1022s ok 1137 /checksum/SHA384/25 1022s ok 1138 /checksum/SHA384/26 1022s ok 1139 /checksum/SHA384/27 1022s ok 1140 /checksum/SHA384/28 1022s ok 1141 /checksum/SHA384/29 1022s ok 1142 /checksum/SHA384/30 1022s ok 1143 /checksum/SHA384/31 1022s ok 1144 /checksum/SHA384/32 1022s ok 1145 /checksum/SHA384/33 1022s ok 1146 /checksum/SHA384/34 1022s ok 1147 /checksum/SHA384/35 1022s ok 1148 /checksum/SHA384/36 1022s ok 1149 /checksum/SHA384/37 1022s ok 1150 /checksum/SHA384/38 1022s ok 1151 /checksum/SHA384/39 1022s ok 1152 /checksum/SHA384/40 1022s ok 1153 /checksum/SHA384/41 1022s ok 1154 /checksum/SHA384/42 1022s ok 1155 /checksum/SHA384/43 1022s ok 1156 /checksum/SHA384/44 1022s ok 1157 /checksum/SHA384/45 1022s ok 1158 /checksum/SHA384/46 1022s ok 1159 /checksum/SHA384/47 1022s ok 1160 /checksum/SHA384/48 1022s ok 1161 /checksum/SHA384/49 1022s ok 1162 /checksum/SHA384/50 1022s ok 1163 /checksum/SHA384/51 1022s ok 1164 /checksum/SHA384/52 1022s ok 1165 /checksum/SHA384/53 1022s ok 1166 /checksum/SHA384/54 1022s ok 1167 /checksum/SHA384/55 1022s ok 1168 /checksum/SHA384/56 1022s ok 1169 /checksum/SHA384/57 1022s ok 1170 /checksum/SHA384/58 1022s ok 1171 /checksum/SHA384/59 1022s ok 1172 /checksum/SHA384/60 1022s ok 1173 /checksum/SHA384/61 1022s ok 1174 /checksum/SHA384/62 1022s ok 1175 /checksum/SHA384/63 1022s ok 1176 /checksum/SHA384/64 1022s ok 1177 /checksum/SHA384/65 1022s ok 1178 /checksum/SHA384/66 1022s ok 1179 /checksum/SHA384/67 1022s ok 1180 /checksum/SHA384/68 1022s ok 1181 /checksum/SHA384/69 1022s ok 1182 /checksum/SHA384/70 1022s ok 1183 /checksum/SHA384/71 1022s ok 1184 /checksum/SHA384/72 1022s ok 1185 /checksum/SHA384/73 1022s ok 1186 /checksum/SHA384/74 1022s ok 1187 /checksum/SHA384/75 1022s ok 1188 /checksum/SHA384/76 1022s ok 1189 /checksum/SHA384/77 1022s ok 1190 /checksum/SHA384/78 1022s ok 1191 /checksum/SHA384/79 1022s ok 1192 /checksum/SHA384/80 1022s ok 1193 /checksum/SHA384/81 1022s ok 1194 /checksum/SHA384/82 1022s ok 1195 /checksum/SHA384/83 1022s ok 1196 /checksum/SHA384/84 1022s ok 1197 /checksum/SHA384/85 1022s ok 1198 /checksum/SHA384/86 1022s ok 1199 /checksum/SHA384/87 1022s ok 1200 /checksum/SHA384/88 1022s ok 1201 /checksum/SHA384/89 1022s ok 1202 /checksum/SHA384/90 1022s ok 1203 /checksum/SHA384/91 1022s ok 1204 /checksum/SHA384/92 1022s ok 1205 /checksum/SHA384/93 1022s ok 1206 /checksum/SHA384/94 1022s ok 1207 /checksum/SHA384/95 1022s ok 1208 /checksum/SHA384/96 1022s ok 1209 /checksum/SHA384/97 1022s ok 1210 /checksum/SHA384/98 1022s ok 1211 /checksum/SHA384/99 1022s ok 1212 /checksum/SHA384/100 1022s ok 1213 /checksum/SHA384/101 1022s ok 1214 /checksum/SHA384/102 1022s ok 1215 /checksum/SHA384/103 1022s ok 1216 /checksum/SHA384/104 1022s ok 1217 /checksum/SHA384/105 1022s ok 1218 /checksum/SHA384/106 1022s ok 1219 /checksum/SHA384/107 1022s ok 1220 /checksum/SHA384/108 1022s ok 1221 /checksum/SHA384/109 1022s ok 1222 /checksum/SHA384/110 1022s ok 1223 /checksum/SHA384/111 1022s ok 1224 /checksum/SHA384/112 1022s ok 1225 /checksum/SHA384/113 1022s ok 1226 /checksum/SHA384/114 1022s ok 1227 /checksum/SHA384/115 1022s ok 1228 /checksum/SHA384/116 1022s ok 1229 /checksum/SHA384/117 1022s ok 1230 /checksum/SHA384/118 1022s ok 1231 /checksum/SHA384/119 1022s ok 1232 /checksum/SHA384/120 1022s ok 1233 /checksum/SHA384/121 1022s ok 1234 /checksum/SHA384/122 1022s ok 1235 /checksum/SHA384/123 1022s ok 1236 /checksum/SHA384/124 1022s ok 1237 /checksum/SHA384/125 1022s ok 1238 /checksum/SHA384/126 1022s ok 1239 /checksum/SHA384/127 1022s ok 1240 /checksum/SHA384/128 1022s ok 1241 /checksum/SHA384/129 1022s ok 1242 /checksum/SHA384/130 1022s ok 1243 /checksum/SHA384/131 1022s ok 1244 /checksum/SHA384/132 1022s ok 1245 /checksum/SHA384/133 1022s ok 1246 /checksum/SHA384/134 1022s ok 1247 /checksum/SHA384/135 1022s ok 1248 /checksum/SHA384/136 1022s ok 1249 /checksum/SHA384/137 1022s ok 1250 /checksum/SHA384/138 1022s ok 1251 /checksum/SHA384/139 1022s ok 1252 /checksum/SHA384/140 1022s ok 1253 /checksum/SHA384/141 1022s ok 1254 /checksum/SHA384/142 1022s ok 1255 /checksum/SHA384/143 1022s ok 1256 /checksum/SHA384/144 1022s ok 1257 /checksum/SHA384/145 1022s ok 1258 /checksum/SHA384/146 1022s ok 1259 /checksum/SHA384/147 1022s ok 1260 /checksum/SHA384/148 1022s ok 1261 /checksum/SHA384/149 1022s ok 1262 /checksum/SHA384/150 1022s ok 1263 /checksum/SHA384/151 1022s ok 1264 /checksum/SHA384/152 1022s ok 1265 /checksum/SHA384/153 1022s ok 1266 /checksum/SHA384/154 1022s ok 1267 /checksum/SHA384/155 1022s ok 1268 /checksum/SHA384/156 1022s ok 1269 /checksum/SHA384/157 1022s ok 1270 /checksum/SHA384/158 1022s ok 1271 /checksum/SHA384/159 1022s ok 1272 /checksum/SHA384/160 1022s ok 1273 /checksum/SHA384/161 1022s ok 1274 /checksum/SHA384/162 1022s ok 1275 /checksum/SHA384/163 1022s ok 1276 /checksum/SHA384/164 1022s ok 1277 /checksum/SHA384/165 1022s ok 1278 /checksum/SHA384/166 1022s ok 1279 /checksum/SHA384/167 1022s ok 1280 /checksum/SHA384/168 1022s ok 1281 /checksum/SHA384/169 1022s ok 1282 /checksum/SHA384/170 1022s ok 1283 /checksum/SHA384/171 1022s ok 1284 /checksum/SHA384/172 1022s ok 1285 /checksum/SHA384/173 1022s ok 1286 /checksum/SHA384/174 1022s ok 1287 /checksum/SHA384/175 1022s ok 1288 /checksum/SHA384/176 1022s ok 1289 /checksum/SHA384/177 1022s ok 1290 /checksum/SHA384/178 1022s ok 1291 /checksum/SHA384/179 1022s ok 1292 /checksum/SHA384/180 1022s ok 1293 /checksum/SHA384/181 1022s ok 1294 /checksum/SHA384/182 1022s ok 1295 /checksum/SHA384/183 1022s ok 1296 /checksum/SHA384/string 1022s ok 1297 /checksum/SHA384/bytes 1022s # Start of reset tests 1022s ok 1298 /checksum/SHA384/reset/0 1022s ok 1299 /checksum/SHA384/reset/1 1022s ok 1300 /checksum/SHA384/reset/2 1022s ok 1301 /checksum/SHA384/reset/3 1022s ok 1302 /checksum/SHA384/reset/4 1022s ok 1303 /checksum/SHA384/reset/5 1022s ok 1304 /checksum/SHA384/reset/6 1022s ok 1305 /checksum/SHA384/reset/7 1022s ok 1306 /checksum/SHA384/reset/8 1022s ok 1307 /checksum/SHA384/reset/9 1022s ok 1308 /checksum/SHA384/reset/10 1022s ok 1309 /checksum/SHA384/reset/11 1022s ok 1310 /checksum/SHA384/reset/12 1022s ok 1311 /checksum/SHA384/reset/13 1022s ok 1312 /checksum/SHA384/reset/14 1022s ok 1313 /checksum/SHA384/reset/15 1022s ok 1314 /checksum/SHA384/reset/16 1022s ok 1315 /checksum/SHA384/reset/17 1022s ok 1316 /checksum/SHA384/reset/18 1022s ok 1317 /checksum/SHA384/reset/19 1022s ok 1318 /checksum/SHA384/reset/20 1022s ok 1319 /checksum/SHA384/reset/21 1022s ok 1320 /checksum/SHA384/reset/22 1022s ok 1321 /checksum/SHA384/reset/23 1022s ok 1322 /checksum/SHA384/reset/24 1022s ok 1323 /checksum/SHA384/reset/25 1022s ok 1324 /checksum/SHA384/reset/26 1022s ok 1325 /checksum/SHA384/reset/27 1022s ok 1326 /checksum/SHA384/reset/28 1022s ok 1327 /checksum/SHA384/reset/29 1022s ok 1328 /checksum/SHA384/reset/30 1022s ok 1329 /checksum/SHA384/reset/31 1022s ok 1330 /checksum/SHA384/reset/32 1022s ok 1331 /checksum/SHA384/reset/33 1022s ok 1332 /checksum/SHA384/reset/34 1022s ok 1333 /checksum/SHA384/reset/35 1022s ok 1334 /checksum/SHA384/reset/36 1022s ok 1335 /checksum/SHA384/reset/37 1022s ok 1336 /checksum/SHA384/reset/38 1022s ok 1337 /checksum/SHA384/reset/39 1022s ok 1338 /checksum/SHA384/reset/40 1022s ok 1339 /checksum/SHA384/reset/41 1022s ok 1340 /checksum/SHA384/reset/42 1022s ok 1341 /checksum/SHA384/reset/43 1022s ok 1342 /checksum/SHA384/reset/44 1022s ok 1343 /checksum/SHA384/reset/45 1022s ok 1344 /checksum/SHA384/reset/46 1022s ok 1345 /checksum/SHA384/reset/47 1022s ok 1346 /checksum/SHA384/reset/48 1022s ok 1347 /checksum/SHA384/reset/49 1022s ok 1348 /checksum/SHA384/reset/50 1022s ok 1349 /checksum/SHA384/reset/51 1022s ok 1350 /checksum/SHA384/reset/52 1022s ok 1351 /checksum/SHA384/reset/53 1022s ok 1352 /checksum/SHA384/reset/54 1022s ok 1353 /checksum/SHA384/reset/55 1022s ok 1354 /checksum/SHA384/reset/56 1022s ok 1355 /checksum/SHA384/reset/57 1022s ok 1356 /checksum/SHA384/reset/58 1022s ok 1357 /checksum/SHA384/reset/59 1022s ok 1358 /checksum/SHA384/reset/60 1022s ok 1359 /checksum/SHA384/reset/61 1022s ok 1360 /checksum/SHA384/reset/62 1022s ok 1361 /checksum/SHA384/reset/63 1022s ok 1362 /checksum/SHA384/reset/64 1022s ok 1363 /checksum/SHA384/reset/65 1022s ok 1364 /checksum/SHA384/reset/66 1022s ok 1365 /checksum/SHA384/reset/67 1022s ok 1366 /checksum/SHA384/reset/68 1022s ok 1367 /checksum/SHA384/reset/69 1022s ok 1368 /checksum/SHA384/reset/70 1022s ok 1369 /checksum/SHA384/reset/71 1022s ok 1370 /checksum/SHA384/reset/72 1022s ok 1371 /checksum/SHA384/reset/73 1022s ok 1372 /checksum/SHA384/reset/74 1022s ok 1373 /checksum/SHA384/reset/75 1022s ok 1374 /checksum/SHA384/reset/76 1022s ok 1375 /checksum/SHA384/reset/77 1022s ok 1376 /checksum/SHA384/reset/78 1022s ok 1377 /checksum/SHA384/reset/79 1022s ok 1378 /checksum/SHA384/reset/80 1022s ok 1379 /checksum/SHA384/reset/81 1022s ok 1380 /checksum/SHA384/reset/82 1022s ok 1381 /checksum/SHA384/reset/83 1022s ok 1382 /checksum/SHA384/reset/84 1022s ok 1383 /checksum/SHA384/reset/85 1022s ok 1384 /checksum/SHA384/reset/86 1022s ok 1385 /checksum/SHA384/reset/87 1022s ok 1386 /checksum/SHA384/reset/88 1022s ok 1387 /checksum/SHA384/reset/89 1022s ok 1388 /checksum/SHA384/reset/90 1022s ok 1389 /checksum/SHA384/reset/91 1022s ok 1390 /checksum/SHA384/reset/92 1022s ok 1391 /checksum/SHA384/reset/93 1022s ok 1392 /checksum/SHA384/reset/94 1022s ok 1393 /checksum/SHA384/reset/95 1022s ok 1394 /checksum/SHA384/reset/96 1022s ok 1395 /checksum/SHA384/reset/97 1022s ok 1396 /checksum/SHA384/reset/98 1022s ok 1397 /checksum/SHA384/reset/99 1022s ok 1398 /checksum/SHA384/reset/100 1022s ok 1399 /checksum/SHA384/reset/101 1022s ok 1400 /checksum/SHA384/reset/102 1022s ok 1401 /checksum/SHA384/reset/103 1022s ok 1402 /checksum/SHA384/reset/104 1022s ok 1403 /checksum/SHA384/reset/105 1022s ok 1404 /checksum/SHA384/reset/106 1022s ok 1405 /checksum/SHA384/reset/107 1022s ok 1406 /checksum/SHA384/reset/108 1022s ok 1407 /checksum/SHA384/reset/109 1022s ok 1408 /checksum/SHA384/reset/110 1022s ok 1409 /checksum/SHA384/reset/111 1022s ok 1410 /checksum/SHA384/reset/112 1022s ok 1411 /checksum/SHA384/reset/113 1022s ok 1412 /checksum/SHA384/reset/114 1022s ok 1413 /checksum/SHA384/reset/115 1022s ok 1414 /checksum/SHA384/reset/116 1022s ok 1415 /checksum/SHA384/reset/117 1022s ok 1416 /checksum/SHA384/reset/118 1022s ok 1417 /checksum/SHA384/reset/119 1022s ok 1418 /checksum/SHA384/reset/120 1022s ok 1419 /checksum/SHA384/reset/121 1022s ok 1420 /checksum/SHA384/reset/122 1022s ok 1421 /checksum/SHA384/reset/123 1022s ok 1422 /checksum/SHA384/reset/124 1022s ok 1423 /checksum/SHA384/reset/125 1022s ok 1424 /checksum/SHA384/reset/126 1022s ok 1425 /checksum/SHA384/reset/127 1022s ok 1426 /checksum/SHA384/reset/128 1022s ok 1427 /checksum/SHA384/reset/129 1022s ok 1428 /checksum/SHA384/reset/130 1022s ok 1429 /checksum/SHA384/reset/131 1022s ok 1430 /checksum/SHA384/reset/132 1022s ok 1431 /checksum/SHA384/reset/133 1022s ok 1432 /checksum/SHA384/reset/134 1022s ok 1433 /checksum/SHA384/reset/135 1022s ok 1434 /checksum/SHA384/reset/136 1022s ok 1435 /checksum/SHA384/reset/137 1022s ok 1436 /checksum/SHA384/reset/138 1022s ok 1437 /checksum/SHA384/reset/139 1022s ok 1438 /checksum/SHA384/reset/140 1022s ok 1439 /checksum/SHA384/reset/141 1022s ok 1440 /checksum/SHA384/reset/142 1022s ok 1441 /checksum/SHA384/reset/143 1022s ok 1442 /checksum/SHA384/reset/144 1022s ok 1443 /checksum/SHA384/reset/145 1022s ok 1444 /checksum/SHA384/reset/146 1022s ok 1445 /checksum/SHA384/reset/147 1022s ok 1446 /checksum/SHA384/reset/148 1022s ok 1447 /checksum/SHA384/reset/149 1022s ok 1448 /checksum/SHA384/reset/150 1022s ok 1449 /checksum/SHA384/reset/151 1022s ok 1450 /checksum/SHA384/reset/152 1022s ok 1451 /checksum/SHA384/reset/153 1022s ok 1452 /checksum/SHA384/reset/154 1022s ok 1453 /checksum/SHA384/reset/155 1022s ok 1454 /checksum/SHA384/reset/156 1022s ok 1455 /checksum/SHA384/reset/157 1022s ok 1456 /checksum/SHA384/reset/158 1022s ok 1457 /checksum/SHA384/reset/159 1022s ok 1458 /checksum/SHA384/reset/160 1022s ok 1459 /checksum/SHA384/reset/161 1022s ok 1460 /checksum/SHA384/reset/162 1022s ok 1461 /checksum/SHA384/reset/163 1022s ok 1462 /checksum/SHA384/reset/164 1022s ok 1463 /checksum/SHA384/reset/165 1022s ok 1464 /checksum/SHA384/reset/166 1022s ok 1465 /checksum/SHA384/reset/167 1022s ok 1466 /checksum/SHA384/reset/168 1022s ok 1467 /checksum/SHA384/reset/169 1022s ok 1468 /checksum/SHA384/reset/170 1022s ok 1469 /checksum/SHA384/reset/171 1022s ok 1470 /checksum/SHA384/reset/172 1022s ok 1471 /checksum/SHA384/reset/173 1022s ok 1472 /checksum/SHA384/reset/174 1022s ok 1473 /checksum/SHA384/reset/175 1022s ok 1474 /checksum/SHA384/reset/176 1022s ok 1475 /checksum/SHA384/reset/177 1022s ok 1476 /checksum/SHA384/reset/178 1022s ok 1477 /checksum/SHA384/reset/179 1022s ok 1478 /checksum/SHA384/reset/180 1022s ok 1479 /checksum/SHA384/reset/181 1022s ok 1480 /checksum/SHA384/reset/182 1022s ok 1481 /checksum/SHA384/reset/183 1022s # End of reset tests 1022s # End of SHA384 tests 1022s # Start of SHA512 tests 1022s ok 1482 /checksum/SHA512/0 1022s ok 1483 /checksum/SHA512/1 1022s ok 1484 /checksum/SHA512/2 1022s ok 1485 /checksum/SHA512/3 1022s ok 1486 /checksum/SHA512/4 1022s ok 1487 /checksum/SHA512/5 1022s ok 1488 /checksum/SHA512/6 1022s ok 1489 /checksum/SHA512/7 1022s ok 1490 /checksum/SHA512/8 1022s ok 1491 /checksum/SHA512/9 1022s ok 1492 /checksum/SHA512/10 1022s ok 1493 /checksum/SHA512/11 1022s ok 1494 /checksum/SHA512/12 1022s ok 1495 /checksum/SHA512/13 1022s ok 1496 /checksum/SHA512/14 1022s ok 1497 /checksum/SHA512/15 1022s ok 1498 /checksum/SHA512/16 1022s ok 1499 /checksum/SHA512/17 1022s ok 1500 /checksum/SHA512/18 1022s ok 1501 /checksum/SHA512/19 1022s ok 1502 /checksum/SHA512/20 1022s ok 1503 /checksum/SHA512/21 1022s ok 1504 /checksum/SHA512/22 1022s ok 1505 /checksum/SHA512/23 1022s ok 1506 /checksum/SHA512/24 1022s ok 1507 /checksum/SHA512/25 1022s ok 1508 /checksum/SHA512/26 1022s ok 1509 /checksum/SHA512/27 1022s ok 1510 /checksum/SHA512/28 1022s ok 1511 /checksum/SHA512/29 1022s ok 1512 /checksum/SHA512/30 1022s ok 1513 /checksum/SHA512/31 1022s ok 1514 /checksum/SHA512/32 1022s ok 1515 /checksum/SHA512/33 1022s ok 1516 /checksum/SHA512/34 1022s ok 1517 /checksum/SHA512/35 1022s ok 1518 /checksum/SHA512/36 1022s ok 1519 /checksum/SHA512/37 1022s ok 1520 /checksum/SHA512/38 1022s ok 1521 /checksum/SHA512/39 1022s ok 1522 /checksum/SHA512/40 1022s ok 1523 /checksum/SHA512/41 1022s ok 1524 /checksum/SHA512/42 1022s ok 1525 /checksum/SHA512/43 1022s ok 1526 /checksum/SHA512/44 1022s ok 1527 /checksum/SHA512/45 1022s ok 1528 /checksum/SHA512/46 1022s ok 1529 /checksum/SHA512/47 1022s ok 1530 /checksum/SHA512/48 1022s ok 1531 /checksum/SHA512/49 1022s ok 1532 /checksum/SHA512/50 1022s ok 1533 /checksum/SHA512/51 1022s ok 1534 /checksum/SHA512/52 1022s ok 1535 /checksum/SHA512/53 1022s ok 1536 /checksum/SHA512/54 1022s ok 1537 /checksum/SHA512/55 1022s ok 1538 /checksum/SHA512/56 1022s ok 1539 /checksum/SHA512/57 1022s ok 1540 /checksum/SHA512/58 1022s ok 1541 /checksum/SHA512/59 1022s ok 1542 /checksum/SHA512/60 1022s ok 1543 /checksum/SHA512/61 1022s ok 1544 /checksum/SHA512/62 1022s ok 1545 /checksum/SHA512/63 1022s ok 1546 /checksum/SHA512/64 1022s ok 1547 /checksum/SHA512/65 1022s ok 1548 /checksum/SHA512/66 1022s ok 1549 /checksum/SHA512/67 1022s ok 1550 /checksum/SHA512/68 1022s ok 1551 /checksum/SHA512/69 1022s ok 1552 /checksum/SHA512/70 1022s ok 1553 /checksum/SHA512/71 1022s ok 1554 /checksum/SHA512/72 1022s ok 1555 /checksum/SHA512/73 1022s ok 1556 /checksum/SHA512/74 1022s ok 1557 /checksum/SHA512/75 1022s ok 1558 /checksum/SHA512/76 1022s ok 1559 /checksum/SHA512/77 1022s ok 1560 /checksum/SHA512/78 1022s ok 1561 /checksum/SHA512/79 1022s ok 1562 /checksum/SHA512/80 1022s ok 1563 /checksum/SHA512/81 1022s ok 1564 /checksum/SHA512/82 1022s ok 1565 /checksum/SHA512/83 1022s ok 1566 /checksum/SHA512/84 1022s ok 1567 /checksum/SHA512/85 1022s ok 1568 /checksum/SHA512/86 1022s ok 1569 /checksum/SHA512/87 1022s ok 1570 /checksum/SHA512/88 1022s ok 1571 /checksum/SHA512/89 1022s ok 1572 /checksum/SHA512/90 1022s ok 1573 /checksum/SHA512/91 1022s ok 1574 /checksum/SHA512/92 1022s ok 1575 /checksum/SHA512/93 1022s ok 1576 /checksum/SHA512/94 1022s ok 1577 /checksum/SHA512/95 1022s ok 1578 /checksum/SHA512/96 1022s ok 1579 /checksum/SHA512/97 1022s ok 1580 /checksum/SHA512/98 1022s ok 1581 /checksum/SHA512/99 1022s ok 1582 /checksum/SHA512/100 1022s ok 1583 /checksum/SHA512/101 1022s ok 1584 /checksum/SHA512/102 1022s ok 1585 /checksum/SHA512/103 1022s ok 1586 /checksum/SHA512/104 1022s ok 1587 /checksum/SHA512/105 1022s ok 1588 /checksum/SHA512/106 1022s ok 1589 /checksum/SHA512/107 1022s ok 1590 /checksum/SHA512/108 1022s ok 1591 /checksum/SHA512/109 1022s ok 1592 /checksum/SHA512/110 1022s ok 1593 /checksum/SHA512/111 1022s ok 1594 /checksum/SHA512/112 1022s ok 1595 /checksum/SHA512/113 1022s ok 1596 /checksum/SHA512/114 1022s ok 1597 /checksum/SHA512/115 1022s ok 1598 /checksum/SHA512/116 1022s ok 1599 /checksum/SHA512/117 1022s ok 1600 /checksum/SHA512/118 1022s ok 1601 /checksum/SHA512/119 1022s ok 1602 /checksum/SHA512/120 1022s ok 1603 /checksum/SHA512/121 1022s ok 1604 /checksum/SHA512/122 1022s ok 1605 /checksum/SHA512/123 1022s ok 1606 /checksum/SHA512/124 1022s ok 1607 /checksum/SHA512/125 1022s ok 1608 /checksum/SHA512/126 1022s ok 1609 /checksum/SHA512/127 1022s ok 1610 /checksum/SHA512/128 1022s ok 1611 /checksum/SHA512/129 1022s ok 1612 /checksum/SHA512/130 1022s ok 1613 /checksum/SHA512/131 1022s ok 1614 /checksum/SHA512/132 1022s ok 1615 /checksum/SHA512/133 1022s ok 1616 /checksum/SHA512/134 1022s ok 1617 /checksum/SHA512/135 1022s ok 1618 /checksum/SHA512/136 1022s ok 1619 /checksum/SHA512/137 1022s ok 1620 /checksum/SHA512/138 1022s ok 1621 /checksum/SHA512/139 1022s ok 1622 /checksum/SHA512/140 1022s ok 1623 /checksum/SHA512/141 1022s ok 1624 /checksum/SHA512/142 1022s ok 1625 /checksum/SHA512/143 1022s ok 1626 /checksum/SHA512/144 1022s ok 1627 /checksum/SHA512/145 1022s ok 1628 /checksum/SHA512/146 1022s ok 1629 /checksum/SHA512/147 1022s ok 1630 /checksum/SHA512/148 1022s ok 1631 /checksum/SHA512/149 1022s ok 1632 /checksum/SHA512/150 1022s ok 1633 /checksum/SHA512/151 1022s ok 1634 /checksum/SHA512/152 1022s ok 1635 /checksum/SHA512/153 1022s ok 1636 /checksum/SHA512/154 1022s ok 1637 /checksum/SHA512/155 1022s ok 1638 /checksum/SHA512/156 1022s ok 1639 /checksum/SHA512/157 1022s ok 1640 /checksum/SHA512/158 1022s ok 1641 /checksum/SHA512/159 1022s ok 1642 /checksum/SHA512/160 1022s ok 1643 /checksum/SHA512/161 1022s ok 1644 /checksum/SHA512/162 1022s ok 1645 /checksum/SHA512/163 1022s ok 1646 /checksum/SHA512/164 1022s ok 1647 /checksum/SHA512/165 1022s ok 1648 /checksum/SHA512/166 1022s ok 1649 /checksum/SHA512/167 1022s ok 1650 /checksum/SHA512/168 1022s ok 1651 /checksum/SHA512/169 1022s ok 1652 /checksum/SHA512/170 1022s ok 1653 /checksum/SHA512/171 1022s ok 1654 /checksum/SHA512/172 1022s ok 1655 /checksum/SHA512/173 1022s ok 1656 /checksum/SHA512/174 1022s ok 1657 /checksum/SHA512/175 1022s ok 1658 /checksum/SHA512/176 1022s ok 1659 /checksum/SHA512/177 1022s ok 1660 /checksum/SHA512/178 1022s ok 1661 /checksum/SHA512/179 1022s ok 1662 /checksum/SHA512/180 1022s ok 1663 /checksum/SHA512/181 1022s ok 1664 /checksum/SHA512/182 1022s ok 1665 /checksum/SHA512/183 1022s ok 1666 /checksum/SHA512/string 1022s ok 1667 /checksum/SHA512/bytes 1022s # Start of reset tests 1022s ok 1668 /checksum/SHA512/reset/0 1022s ok 1669 /checksum/SHA512/reset/1 1022s ok 1670 /checksum/SHA512/reset/2 1022s ok 1671 /checksum/SHA512/reset/3 1022s ok 1672 /checksum/SHA512/reset/4 1022s ok 1673 /checksum/SHA512/reset/5 1022s ok 1674 /checksum/SHA512/reset/6 1022s ok 1675 /checksum/SHA512/reset/7 1022s ok 1676 /checksum/SHA512/reset/8 1022s ok 1677 /checksum/SHA512/reset/9 1022s ok 1678 /checksum/SHA512/reset/10 1022s ok 1679 /checksum/SHA512/reset/11 1022s ok 1680 /checksum/SHA512/reset/12 1022s ok 1681 /checksum/SHA512/reset/13 1022s ok 1682 /checksum/SHA512/reset/14 1022s ok 1683 /checksum/SHA512/reset/15 1022s ok 1684 /checksum/SHA512/reset/16 1022s ok 1685 /checksum/SHA512/reset/17 1022s ok 1686 /checksum/SHA512/reset/18 1022s ok 1687 /checksum/SHA512/reset/19 1022s ok 1688 /checksum/SHA512/reset/20 1022s ok 1689 /checksum/SHA512/reset/21 1022s ok 1690 /checksum/SHA512/reset/22 1022s ok 1691 /checksum/SHA512/reset/23 1022s ok 1692 /checksum/SHA512/reset/24 1022s ok 1693 /checksum/SHA512/reset/25 1022s ok 1694 /checksum/SHA512/reset/26 1022s ok 1695 /checksum/SHA512/reset/27 1022s ok 1696 /checksum/SHA512/reset/28 1022s ok 1697 /checksum/SHA512/reset/29 1022s ok 1698 /checksum/SHA512/reset/30 1022s ok 1699 /checksum/SHA512/reset/31 1022s ok 1700 /checksum/SHA512/reset/32 1022s ok 1701 /checksum/SHA512/reset/33 1022s ok 1702 /checksum/SHA512/reset/34 1022s ok 1703 /checksum/SHA512/reset/35 1022s ok 1704 /checksum/SHA512/reset/36 1022s ok 1705 /checksum/SHA512/reset/37 1022s ok 1706 /checksum/SHA512/reset/38 1022s ok 1707 /checksum/SHA512/reset/39 1022s ok 1708 /checksum/SHA512/reset/40 1022s ok 1709 /checksum/SHA512/reset/41 1022s ok 1710 /checksum/SHA512/reset/42 1022s ok 1711 /checksum/SHA512/reset/43 1022s ok 1712 /checksum/SHA512/reset/44 1022s ok 1713 /checksum/SHA512/reset/45 1022s ok 1714 /checksum/SHA512/reset/46 1022s ok 1715 /checksum/SHA512/reset/47 1022s ok 1716 /checksum/SHA512/reset/48 1022s ok 1717 /checksum/SHA512/reset/49 1022s ok 1718 /checksum/SHA512/reset/50 1022s ok 1719 /checksum/SHA512/reset/51 1022s ok 1720 /checksum/SHA512/reset/52 1022s ok 1721 /checksum/SHA512/reset/53 1022s ok 1722 /checksum/SHA512/reset/54 1022s ok 1723 /checksum/SHA512/reset/55 1022s ok 1724 /checksum/SHA512/reset/56 1022s ok 1725 /checksum/SHA512/reset/57 1022s ok 1726 /checksum/SHA512/reset/58 1022s ok 1727 /checksum/SHA512/reset/59 1022s ok 1728 /checksum/SHA512/reset/60 1022s ok 1729 /checksum/SHA512/reset/61 1022s ok 1730 /checksum/SHA512/reset/62 1022s ok 1731 /checksum/SHA512/reset/63 1022s ok 1732 /checksum/SHA512/reset/64 1022s ok 1733 /checksum/SHA512/reset/65 1022s ok 1734 /checksum/SHA512/reset/66 1022s ok 1735 /checksum/SHA512/reset/67 1022s ok 1736 /checksum/SHA512/reset/68 1022s ok 1737 /checksum/SHA512/reset/69 1022s ok 1738 /checksum/SHA512/reset/70 1022s ok 1739 /checksum/SHA512/reset/71 1022s ok 1740 /checksum/SHA512/reset/72 1022s ok 1741 /checksum/SHA512/reset/73 1022s ok 1742 /checksum/SHA512/reset/74 1022s ok 1743 /checksum/SHA512/reset/75 1022s ok 1744 /checksum/SHA512/reset/76 1022s ok 1745 /checksum/SHA512/reset/77 1022s ok 1746 /checksum/SHA512/reset/78 1022s ok 1747 /checksum/SHA512/reset/79 1022s ok 1748 /checksum/SHA512/reset/80 1022s ok 1749 /checksum/SHA512/reset/81 1022s ok 1750 /checksum/SHA512/reset/82 1022s ok 1751 /checksum/SHA512/reset/83 1022s ok 1752 /checksum/SHA512/reset/84 1022s ok 1753 /checksum/SHA512/reset/85 1022s ok 1754 /checksum/SHA512/reset/86 1022s ok 1755 /checksum/SHA512/reset/87 1022s ok 1756 /checksum/SHA512/reset/88 1022s ok 1757 /checksum/SHA512/reset/89 1022s ok 1758 /checksum/SHA512/reset/90 1022s ok 1759 /checksum/SHA512/reset/91 1022s ok 1760 /checksum/SHA512/reset/92 1022s ok 1761 /checksum/SHA512/reset/93 1022s ok 1762 /checksum/SHA512/reset/94 1022s ok 1763 /checksum/SHA512/reset/95 1022s ok 1764 /checksum/SHA512/reset/96 1022s ok 1765 /checksum/SHA512/reset/97 1022s ok 1766 /checksum/SHA512/reset/98 1022s ok 1767 /checksum/SHA512/reset/99 1022s ok 1768 /checksum/SHA512/reset/100 1022s ok 1769 /checksum/SHA512/reset/101 1022s ok 1770 /checksum/SHA512/reset/102 1022s ok 1771 /checksum/SHA512/reset/103 1022s ok 1772 /checksum/SHA512/reset/104 1022s ok 1773 /checksum/SHA512/reset/105 1022s ok 1774 /checksum/SHA512/reset/106 1022s ok 1775 /checksum/SHA512/reset/107 1022s ok 1776 /checksum/SHA512/reset/108 1022s ok 1777 /checksum/SHA512/reset/109 1022s ok 1778 /checksum/SHA512/reset/110 1022s ok 1779 /checksum/SHA512/reset/111 1022s ok 1780 /checksum/SHA512/reset/112 1022s ok 1781 /checksum/SHA512/reset/113 1022s ok 1782 /checksum/SHA512/reset/114 1022s ok 1783 /checksum/SHA512/reset/115 1022s ok 1784 /checksum/SHA512/reset/116 1022s ok 1785 /checksum/SHA512/reset/117 1022s ok 1786 /checksum/SHA512/reset/118 1022s ok 1787 /checksum/SHA512/reset/119 1022s ok 1788 /checksum/SHA512/reset/120 1022s ok 1789 /checksum/SHA512/reset/121 1022s ok 1790 /checksum/SHA512/reset/122 1022s ok 1791 /checksum/SHA512/reset/123 1022s ok 1792 /checksum/SHA512/reset/124 1022s ok 1793 /checksum/SHA512/reset/125 1022s ok 1794 /checksum/SHA512/reset/126 1022s ok 1795 /checksum/SHA512/reset/127 1022s ok 1796 /checksum/SHA512/reset/128 1022s ok 1797 /checksum/SHA512/reset/129 1022s ok 1798 /checksum/SHA512/reset/130 1022s ok 1799 /checksum/SHA512/reset/131 1022s ok 1800 /checksum/SHA512/reset/132 1022s ok 1801 /checksum/SHA512/reset/133 1022s ok 1802 /checksum/SHA512/reset/134 1022s ok 1803 /checksum/SHA512/reset/135 1022s ok 1804 /checksum/SHA512/reset/136 1022s ok 1805 /checksum/SHA512/reset/137 1022s ok 1806 /checksum/SHA512/reset/138 1022s ok 1807 /checksum/SHA512/reset/139 1022s ok 1808 /checksum/SHA512/reset/140 1022s ok 1809 /checksum/SHA512/reset/141 1022s ok 1810 /checksum/SHA512/reset/142 1022s ok 1811 /checksum/SHA512/reset/143 1022s ok 1812 /checksum/SHA512/reset/144 1022s ok 1813 /checksum/SHA512/reset/145 1022s ok 1814 /checksum/SHA512/reset/146 1022s ok 1815 /checksum/SHA512/reset/147 1022s ok 1816 /checksum/SHA512/reset/148 1022s ok 1817 /checksum/SHA512/reset/149 1022s ok 1818 /checksum/SHA512/reset/150 1022s ok 1819 /checksum/SHA512/reset/151 1022s ok 1820 /checksum/SHA512/reset/152 1022s ok 1821 /checksum/SHA512/reset/153 1022s ok 1822 /checksum/SHA512/reset/154 1022s ok 1823 /checksum/SHA512/reset/155 1022s ok 1824 /checksum/SHA512/reset/156 1022s ok 1825 /checksum/SHA512/reset/157 1022s ok 1826 /checksum/SHA512/reset/158 1022s ok 1827 /checksum/SHA512/reset/159 1022s ok 1828 /checksum/SHA512/reset/160 1022s ok 1829 /checksum/SHA512/reset/161 1022s ok 1830 /checksum/SHA512/reset/162 1022s ok 1831 /checksum/SHA512/reset/163 1022s ok 1832 /checksum/SHA512/reset/164 1022s ok 1833 /checksum/SHA512/reset/165 1022s ok 1834 /checksum/SHA512/reset/166 1022s ok 1835 /checksum/SHA512/reset/167 1022s ok 1836 /checksum/SHA512/reset/168 1022s ok 1837 /checksum/SHA512/reset/169 1022s ok 1838 /checksum/SHA512/reset/170 1022s ok 1839 /checksum/SHA512/reset/171 1022s ok 1840 /checksum/SHA512/reset/172 1022s ok 1841 /checksum/SHA512/reset/173 1022s ok 1842 /checksum/SHA512/reset/174 1022s ok 1843 /checksum/SHA512/reset/175 1022s ok 1844 /checksum/SHA512/reset/176 1022s ok 1845 /checksum/SHA512/reset/177 1022s ok 1846 /checksum/SHA512/reset/178 1022s ok 1847 /checksum/SHA512/reset/179 1022s ok 1848 /checksum/SHA512/reset/180 1022s ok 1849 /checksum/SHA512/reset/181 1022s ok 1850 /checksum/SHA512/reset/182 1022s ok 1851 /checksum/SHA512/reset/183 1022s # End of reset tests 1022s # End of SHA512 tests 1022s # End of checksum tests 1022s ok - glib/checksum.test 1022s # Running test: glib/search-utils.test 1022s TAP version 14 1022s # random seed: R02S12223a93f9361c47a808772b8fb470d1 1022s # GLib-DEBUG: Current user locale: C.UTF-8 1022s 1..6 1022s # Start of search tests 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1022s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1022s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1022s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1022s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1022s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1022s ok 1 /search/basic 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1022s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1022s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1022s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 1022s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 1022s ok 2 /search/composed 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1022s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1022s ok 3 /search/decomposed 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1022s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1022s ok 4 /search/turkish 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1022s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1022s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1022s ok 5 /search/c_locale_unicode 1022s # GLib-DEBUG: Started 1022s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1022s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1022s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1022s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1022s ok 6 /search/multi_words 1022s # End of search tests 1022s ok - glib/search-utils.test 1022s # Running test: glib/642026.test 1022s TAP version 14 1022s # random seed: R02Sc6c8b617d94be42a504fd780710e15f5 1022s 1..1 1022s # Start of glib tests 1022s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1022s ok 1 /glib/642026 1022s # End of glib tests 1022s ok - glib/642026.test 1022s # Running test: glib/gdbus-subscribe.test 1022s TAP version 14 1022s # random seed: R02S6fc783436bc13aff31d42767985755e5 1022s 1..24 1022s # Start of gdbus tests 1022s # Start of subscribe tests 1022s # Start of conn tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/simple/.dirs/runtime 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1022s # Step 0: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 1: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 2: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 2 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 1 /gdbus/subscribe/conn/simple 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1022s # Step 0: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: service 2 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 3: emitting signal 1022s # Sender: service 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 4: emitting signal 1022s # Sender: service 2 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 1 1022s # Signal received from service 2 :1.2 1022s # Signal received from service 2 :1.2 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 2 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 3 1022s # Signal received from service 2 :1.2 1022s # Signal received from service 2 :1.2 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1022s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1022s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1022s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1022s # Step 0: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 1: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: (any) 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 2: adding subscription 1022s # Sender: (any) 1022s # Path: (any) 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 3: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 4: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 3 /gdbus/subscribe/conn/match_twice 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1022s # Step 0: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 3: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 3 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1022s # Step 0: adding subscription 1022s # Sender: :0.this.had.better.not.exist 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /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 1022s # Step 0: claiming bus name 1022s # Name: org.gtk.Test.AlreadyOwned 1022s # Owner: service 1022s # Step 1: adding subscription 1022s # Sender: org.gtk.Test.AlreadyOwned 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 2: adding subscription 1022s # Sender: org.gtk.Test.OwnedLater 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 3: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 4: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 5: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 6: claiming bus name 1022s # Name: org.gtk.Test.OwnedLater 1022s # Owner: service 1022s # Step 7: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 5 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 7 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via connection 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 7 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1022s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1022s # Step 0: adding subscription 1022s # Sender: org.freedesktop.DBus 1022s # Path: /org/freedesktop/DBus 1022s # Interface: org.freedesktop.DBus 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/freedesktop/DBus 1022s # Interface: org.freedesktop.DBus 1022s # Member: NameOwnerChanged 1022s # String argument 0: would I lie to you? 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/freedesktop/DBus 1022s # Interface: org.freedesktop.DBus 1022s # Member: NameOwnerChanged 1022s # Waiting for signal to reach message bus 1022s # Step 3: claiming bus name 1022s # Name: org.gtk.Test.OwnedLater 1022s # Owner: service 1022s # Signal received from message bus org.freedesktop.DBus 1022s # Signal received from (unused) org.freedesktop.DBus via connection 1022s # Path: /org/freedesktop/DBus 1022s # Interface: org.freedesktop.DBus 1022s # Member: NameOwnerChanged 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1022s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1022s # Step 0: claiming bus name 1022s # Name: org.gtk.Test.AlreadyOwned 1022s # Owner: service 1022s # Step 1: adding subscription 1022s # Sender: org.gtk.Test.AlreadyOwned 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via connection 1022s # Immediately unsubscribing 1022s # Waiting for AddMatch to be processed 1022s # Step 2: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1022s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1022s # End of conn tests 1022s # Start of proxy tests 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/simple/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1022s # Step 0: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 1: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Cannot subscribe via proxy: no bus name 1022s # Waiting for AddMatch to be processed 1022s # Step 2: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 9 /gdbus/subscribe/proxy/simple 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1022s # Step 0: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Cannot subscribe via proxy: no bus name 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: service 2 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 3: emitting signal 1022s # Sender: service 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 4: emitting signal 1022s # Sender: service 2 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1022s # Step 0: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 1: adding subscription 1022s # Sender: (any) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: (any) 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Cannot subscribe via proxy: no bus name 1022s # Waiting for AddMatch to be processed 1022s # Step 2: adding subscription 1022s # Sender: (any) 1022s # Path: (any) 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Cannot subscribe via proxy: no bus name 1022s # Waiting for AddMatch to be processed 1022s # Step 3: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 4: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via proxy 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via proxy 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 4 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 11 /gdbus/subscribe/proxy/match_twice 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1022s # Step 0: adding subscription 1022s # Sender: service :1.1 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 3: emitting signal 1022s # Sender: service 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Signal received from service :1.1 1022s # Signal received from service :1.1 via proxy 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Sent in step: 3 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1022s # Step 0: adding subscription 1022s # Sender: :0.this.had.better.not.exist 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 1: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 2: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Received Finished signal from subscriber :1.0 1022s # Received Finished signal from service :1.1 1022s # Received Finished signal from service 2 :1.2 1022s # Received Finished signal from attacker :1.3 1022s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1022s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1022s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1022s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1022s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1022s # subscriber is :1.0 1022s # service is :1.1 1022s # service 2 is :1.2 1022s # attacker is :1.3 1022s # Waiting for AddMatch to be processed 1022s # /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 1022s # Step 0: claiming bus name 1022s # Name: org.gtk.Test.AlreadyOwned 1022s # Owner: service 1022s # Step 1: adding subscription 1022s # Sender: org.gtk.Test.AlreadyOwned 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 2: adding subscription 1022s # Sender: org.gtk.Test.OwnedLater 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: (any) 1022s # String argument 0: (any) 1022s # Flags: 0 1022s # Subscribing via proxy 1022s # Waiting for AddMatch to be processed 1022s # Step 3: emitting signal 1022s # Sender: attacker 1022s # Destination: (broadcast) 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1022s # Step 4: emitting signal 1022s # Sender: attacker 1022s # Destination: subscriber :1.0 1022s # Path: /org/gtk/GDBus/ExampleInterface 1022s # Interface: org.gtk.GDBus.ExampleInterface 1022s # Member: Foo 1022s # Argument 0: (not a string) 1022s # Waiting for signal to reach message bus 1023s # Step 5: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 6: claiming bus name 1023s # Name: org.gtk.Test.OwnedLater 1023s # Owner: service 1023s # Step 7: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 5 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1023s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1023s # Step 0: adding subscription 1023s # Sender: org.freedesktop.DBus 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 1: emitting signal 1023s # Sender: attacker 1023s # Destination: (broadcast) 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # String argument 0: would I lie to you? 1023s # Waiting for signal to reach message bus 1023s # Step 2: emitting signal 1023s # Sender: attacker 1023s # Destination: subscriber :1.0 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # Waiting for signal to reach message bus 1023s # Step 3: claiming bus name 1023s # Name: org.gtk.Test.OwnedLater 1023s # Owner: service 1023s # Signal received from message bus org.freedesktop.DBus 1023s # Signal received from (unused) org.freedesktop.DBus via proxy 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1023s # Step 0: claiming bus name 1023s # Name: org.gtk.Test.AlreadyOwned 1023s # Owner: service 1023s # Step 1: adding subscription 1023s # Sender: org.gtk.Test.AlreadyOwned 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 2: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 2 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1023s # End of proxy tests 1023s # Start of parallel tests 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/simple/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1023s # Step 0: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 1: adding subscription 1023s # Sender: (any) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Cannot subscribe via proxy: no bus name 1023s # Waiting for AddMatch to be processed 1023s # Step 2: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 2 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 17 /gdbus/subscribe/parallel/simple 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1023s # Step 0: adding subscription 1023s # Sender: (any) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Cannot subscribe via proxy: no bus name 1023s # Waiting for AddMatch to be processed 1023s # Step 1: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 2: emitting signal 1023s # Sender: service 2 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 3: emitting signal 1023s # Sender: service 1023s # Destination: subscriber :1.0 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 4: emitting signal 1023s # Sender: service 2 1023s # Destination: subscriber :1.0 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 1 1023s # Signal received from service 2 :1.2 1023s # Signal received from service 2 :1.2 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 2 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 3 1023s # Signal received from service 2 :1.2 1023s # Signal received from service 2 :1.2 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1023s # Step 0: adding subscription 1023s # Sender: service :1.1 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 1: adding subscription 1023s # Sender: (any) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: (any) 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Cannot subscribe via proxy: no bus name 1023s # Waiting for AddMatch to be processed 1023s # Step 2: adding subscription 1023s # Sender: (any) 1023s # Path: (any) 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Cannot subscribe via proxy: no bus name 1023s # Waiting for AddMatch to be processed 1023s # Step 3: adding subscription 1023s # Sender: service :1.1 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 4: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 4 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1023s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 19 /gdbus/subscribe/parallel/match_twice 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1023s # Step 0: adding subscription 1023s # Sender: service :1.1 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 1: emitting signal 1023s # Sender: attacker 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 2: emitting signal 1023s # Sender: attacker 1023s # Destination: subscriber :1.0 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 3: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 3 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 3 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1023s # Step 0: adding subscription 1023s # Sender: :0.this.had.better.not.exist 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 1: emitting signal 1023s # Sender: attacker 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 2: emitting signal 1023s # Sender: attacker 1023s # Destination: subscriber :1.0 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /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 1023s # Step 0: claiming bus name 1023s # Name: org.gtk.Test.AlreadyOwned 1023s # Owner: service 1023s # Step 1: adding subscription 1023s # Sender: org.gtk.Test.AlreadyOwned 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 2: adding subscription 1023s # Sender: org.gtk.Test.OwnedLater 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 3: emitting signal 1023s # Sender: attacker 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 4: emitting signal 1023s # Sender: attacker 1023s # Destination: subscriber :1.0 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 5: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Step 6: claiming bus name 1023s # Name: org.gtk.Test.OwnedLater 1023s # Owner: service 1023s # Step 7: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 5 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 5 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via connection 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 7 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1023s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1023s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1023s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1023s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1023s # Step 0: adding subscription 1023s # Sender: org.freedesktop.DBus 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 1: emitting signal 1023s # Sender: attacker 1023s # Destination: (broadcast) 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # String argument 0: would I lie to you? 1023s # Waiting for signal to reach message bus 1023s # Step 2: emitting signal 1023s # Sender: attacker 1023s # Destination: subscriber :1.0 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # Waiting for signal to reach message bus 1023s # Step 3: claiming bus name 1023s # Name: org.gtk.Test.OwnedLater 1023s # Owner: service 1023s # Signal received from message bus org.freedesktop.DBus 1023s # Signal received from (unused) org.freedesktop.DBus via connection 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # Signal received from message bus org.freedesktop.DBus 1023s # Signal received from (unused) org.freedesktop.DBus via proxy 1023s # Path: /org/freedesktop/DBus 1023s # Interface: org.freedesktop.DBus 1023s # Member: NameOwnerChanged 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1023s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1023s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_MHP2E3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1023s # subscriber is :1.0 1023s # service is :1.1 1023s # service 2 is :1.2 1023s # attacker is :1.3 1023s # Waiting for AddMatch to be processed 1023s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1023s # Step 0: claiming bus name 1023s # Name: org.gtk.Test.AlreadyOwned 1023s # Owner: service 1023s # Step 1: adding subscription 1023s # Sender: org.gtk.Test.AlreadyOwned 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: (any) 1023s # String argument 0: (any) 1023s # Flags: 0 1023s # Subscribing via connection 1023s # Immediately unsubscribing 1023s # Subscribing via proxy 1023s # Waiting for AddMatch to be processed 1023s # Step 2: emitting signal 1023s # Sender: service 1023s # Destination: (broadcast) 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Waiting for signal to reach message bus 1023s # Signal received from service :1.1 1023s # Signal received from service :1.1 via proxy 1023s # Path: /org/gtk/GDBus/ExampleInterface 1023s # Interface: org.gtk.GDBus.ExampleInterface 1023s # Member: Foo 1023s # Argument 0: (not a string) 1023s # Sent in step: 2 1023s # Received Finished signal from subscriber :1.0 1023s # Received Finished signal from service :1.1 1023s # Received Finished signal from service 2 :1.2 1023s # Received Finished signal from attacker :1.3 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1023s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1023s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1023s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1023s # End of parallel tests 1023s # End of subscribe tests 1023s # End of gdbus tests 1023s ok - glib/gdbus-subscribe.test 1023s # Running test: glib/macros-c-89.test 1023s TAP version 14 1023s # random seed: R02Sf0ff6b3931d5a8f3815b969bf2de5e40 1023s 1..4 1023s # Start of C tests 1023s ok 1 /C/standard-89 1023s # End of C tests 1023s # Start of alignof tests 1023s ok 2 /alignof/fallback 1023s # End of alignof tests 1023s # Start of assert tests 1023s ok 3 /assert/static 1023s # End of assert tests 1023s # Start of struct tests 1023s ok 4 /struct/sizeof_member 1023s # End of struct tests 1023s ok - glib/macros-c-89.test 1023s # Running test: glib/io-stream.test 1023s ok - glib/io-stream.test 1023s # Running test: glib/queue.test 1023s TAP version 14 1023s # random seed: R02Sb18ad23ee7f85fe07e7bbbb19dc1ee5e 1023s 1..3 1023s # Start of io-stream tests 1023s ok 1 /io-stream/copy-chunks 1023s # Start of close tests 1023s # Start of async tests 1023s ok 2 /io-stream/close/async/memory 1023s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1023s ok 3 /io-stream/close/async/file 1023s # End of async tests 1023s # End of close tests 1023s # End of io-stream tests 1023s TAP version 14 1023s # random seed: R02Sccf2f2cde311b6f77b280e36a6b39f9f 1023s 1..12 1023s # Start of queue tests 1023s ok 1 /queue/basic 1023s ok 2 /queue/copy 1023s ok 3 /queue/off-by-one 1023s ok 4 /queue/find-custom 1023s ok 5 /queue/static 1023s ok 6 /queue/clear 1023s ok 7 /queue/free-full 1023s ok 8 /queue/clear-full 1023s ok 9 /queue/insert-sibling-link 1023s ok 10 /queue/push-nth-link 1023s # Start of clear-full tests 1023s ok 11 /queue/clear-full/noop 1023s # End of clear-full tests 1023s # Start of random tests 1023s ok 12 /queue/random/seed:952376077 1023s # End of random tests 1023s # End of queue tests 1023s ok - glib/queue.test 1023s # Running test: glib/gdbus-bz627724.test 1023s TAP version 14 1023s # random seed: R02S1df9ae31d7f3247ddbc23b58db747ddd 1023s 1..1 1023s # Start of gdbus tests 1023s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/home 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/cache 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/system-config2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/config 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/system-data2 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/data 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/state 1023s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_PGCHE3/gdbus/bz627724/.dirs/runtime 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1023s ok 1 /gdbus/bz627724 1023s # End of gdbus tests 1023s ok - glib/gdbus-bz627724.test 1023s # Running test: glib/threadtests.test 1023s TAP version 14 1023s # random seed: R02S103d942f9377f3134bdf7d17bd9b9127 1023s 1..5 1023s # Start of GObject tests 1023s ok 1 /GObject/threaded-object-init 1023s # Executing: glib/threadtests.test 1024s ok 2 /GObject/threaded-weak-ref 1024s # slow test /GObject/threaded-weak-ref executed in 0.68 secs 1024s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1024s # /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 1024s ok 3 /GObject/threaded-toggle-notify 1024s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1024s # Start of threaded-weak-ref tests 1024s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1024s # /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. 1024s ok 5 /GObject/threaded-weak-ref/on-finalization 1024s # End of threaded-weak-ref tests 1024s # End of GObject tests 1024s ok - glib/threadtests.test 1024s # Running test: glib/unix.test 1024s TAP version 14 1024s # random seed: R02S98d314fe81c3a809ae5882959168471d 1024s 1..20 1024s # Start of glib-unix tests 1024s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1024s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1024s ok 1 /glib-unix/closefrom 1024s ok 2 /glib-unix/pipe 1024s # /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 1024s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1024s ok 3 /glib-unix/pipe-stdio-overwrite 1024s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1024s ok 4 /glib-unix/pipe-struct 1024s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1024s ok 5 /glib-unix/pipe-struct-auto 1024s ok 6 /glib-unix/error 1024s ok 7 /glib-unix/nonblocking 1024s ok 8 /glib-unix/sighup 1024s # slow test /glib-unix/sighup executed in 0.50 secs 1025s ok 9 /glib-unix/sigterm 1025s # slow test /glib-unix/sigterm executed in 0.50 secs 1025s ok 10 /glib-unix/sighup_again 1025s # slow test /glib-unix/sighup_again executed in 0.50 secs 1025s ok 11 /glib-unix/sighup_add_remove 1025s ok 12 /glib-unix/sighup_nested 1027s ok 13 /glib-unix/callback_after_signal 1027s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1027s ok 14 /glib-unix/child-wait 1027s # Start of closefrom tests 1027s # Start of subprocess tests 1027s # End of subprocess tests 1027s # End of closefrom tests 1027s # Start of pipe tests 1027s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1027s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1027s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1027s ok 15 /glib-unix/pipe/fd-cloexec 1027s # End of pipe tests 1027s # Start of sighup tests 1028s # Executing: glib/unix.test 1028s ok 16 /glib-unix/sighup/alternate-stack 1028s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1028s # End of sighup tests 1028s # Start of sigterm tests 1029s ok 17 /glib-unix/sigterm/alternate-stack 1029s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1029s # End of sigterm tests 1029s # Start of sighup_again tests 1030s ok 18 /glib-unix/sighup_again/alternate-stack 1030s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1030s # End of sighup_again tests 1030s # Start of get-passwd-entry tests 1030s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1030s ok 19 /glib-unix/get-passwd-entry/root 1030s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1030s ok 20 /glib-unix/get-passwd-entry/nonexistent 1030s # End of get-passwd-entry tests 1030s # End of glib-unix tests 1030s ok - glib/unix.test 1030s # Running test: glib/scannerapi.test 1030s TAP version 14 1030s # random seed: R02Se6a78da7dca117587a7fc216e18cfd38 1030s 1..8 1030s # Start of scanner tests 1030s ok 1 /scanner/warn 1030s ok 2 /scanner/error 1030s ok 3 /scanner/symbols 1030s ok 4 /scanner/tokens 1030s ok 5 /scanner/multiline-comment 1030s ok 6 /scanner/int-to-float 1030s ok 7 /scanner/fd-input 1030s # Start of fd-input tests 1030s ok - glib/scannerapi.test 1030s # Running test: glib/rwlock.test 1030s ok 8 /scanner/fd-input/rewind 1030s # End of fd-input tests 1030s # End of scanner tests 1030s TAP version 14 1030s # random seed: R02S735f7f3828940ffd44910560032b6fe0 1030s 1..8 1030s # Start of thread tests 1030s ok 1 /thread/rwlock1 1030s ok 2 /thread/rwlock2 1030s ok 3 /thread/rwlock3 1030s ok 4 /thread/rwlock4 1030s ok 5 /thread/rwlock5 1030s ok 6 /thread/rwlock6 1033s # Executing: glib/rwlock.test 1038s # Executing: glib/rwlock.test 1043s # Executing: glib/rwlock.test 1048s # Executing: glib/rwlock.test 1053s # Executing: glib/rwlock.test 1056s ok 7 /thread/rwlock7 1056s # slow test /thread/rwlock7 executed in 25.51 secs 1056s ok 8 /thread/rwlock8 1056s # End of thread tests 1056s ok - glib/rwlock.test 1056s # Running test: glib/gdbus-peer-object-manager.test 1056s TAP version 14 1056s # random seed: R02S575d15093747324013a711d24608eba1 1056s 1..2 1056s # Start of gdbus tests 1056s # Start of peer-object-manager tests 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/data 1056s ok - glib/gdbus-peer-object-manager.test 1056s # Running test: glib/portal-support-none.test 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/normal/.dirs/runtime 1056s ok 1 /gdbus/peer-object-manager/normal 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/data 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_ZKPPE3/gdbus/peer-object-manager/root/.dirs/runtime 1056s ok 2 /gdbus/peer-object-manager/root 1056s # End of peer-object-manager tests 1056s # End of gdbus tests 1056s TAP version 14 1056s # random seed: R02Sd650880837cc1af07e2a02f55d75ba5f 1056s 1..1 1056s # Start of portal-support tests 1056s ok 1 /portal-support/none 1056s # End of portal-support tests 1056s TAP version 14 1056s # random seed: R02Se9ccea54aedd59472264f0eb725adf4f 1056s 1..1 1056s # Start of gdbus tests 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/data 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_JMCPE3/gdbus/proxy-unique-name/.dirs/runtime 1056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1056s ok 1 /gdbus/proxy-unique-name 1056s # End of gdbus tests 1056s ok - glib/portal-support-none.test 1056s # Running test: glib/gdbus-proxy-unique-name.test 1056s ok - glib/gdbus-proxy-unique-name.test 1056s # Running test: glib/markup-escape.test 1056s TAP version 14 1056s # random seed: R02Sb15e4fc2aed24135aa139a350ecf1655 1056s 1..41 1056s # Start of markup tests 1056s ok 1 /markup/format 1056s # Start of escape-text tests 1056s ok 2 /markup/escape-text/0 1056s ok 3 /markup/escape-text/1 1056s ok 4 /markup/escape-text/2 1056s ok 5 /markup/escape-text/3 1056s ok 6 /markup/escape-text/4 1056s ok 7 /markup/escape-text/5 1056s ok 8 /markup/escape-text/6 1056s ok 9 /markup/escape-text/7 1056s ok 10 /markup/escape-text/8 1056s ok 11 /markup/escape-text/9 1056s ok 12 /markup/escape-text/10 1056s ok 13 /markup/escape-text/11 1056s ok 14 /markup/escape-text/12 1056s ok 15 /markup/escape-text/13 1056s ok 16 /markup/escape-text/14 1056s ok 17 /markup/escape-text/15 1056s ok 18 /markup/escape-text/16 1056s ok 19 /markup/escape-text/17 1056s ok 20 /markup/escape-text/18 1056s ok 21 /markup/escape-text/19 1056s ok 22 /markup/escape-text/20 1056s ok 23 /markup/escape-text/21 1056s ok 24 /markup/escape-text/22 1056s # End of escape-text tests 1056s # Start of escape-unichar tests 1056s ok 25 /markup/escape-unichar/0 1056s ok 26 /markup/escape-unichar/1 1056s ok 27 /markup/escape-unichar/2 1056s ok 28 /markup/escape-unichar/3 1056s ok 29 /markup/escape-unichar/4 1056s ok 30 /markup/escape-unichar/5 1056s ok 31 /markup/escape-unichar/6 1056s ok 32 /markup/escape-unichar/7 1056s ok 33 /markup/escape-unichar/8 1056s ok 34 /markup/escape-unichar/9 1056s ok - glib/markup-escape.test 1056s # Running test: glib/basics-gobject.test 1056s ok - glib/basics-gobject.test 1056s # Running test: glib/portal-support-snap-classic.test 1056s ok - glib/portal-support-snap-classic.test 1056s # Running test: glib/network-address.test 1056s ok 35 /markup/escape-unichar/10 1056s ok 36 /markup/escape-unichar/11 1056s ok 37 /markup/escape-unichar/12 1056s ok 38 /markup/escape-unichar/13 1056s ok 39 /markup/escape-unichar/14 1056s ok 40 /markup/escape-unichar/15 1056s ok 41 /markup/escape-unichar/16 1056s # End of escape-unichar tests 1056s # End of markup tests 1056s TAP version 14 1056s # random seed: R02S1886d065b08f45f7340844597528ee98 1056s 1..1 1056s # Start of gobject tests 1056s # private data during initialization: 54321 == 54321 1056s # MAIN: emit test-signal: 1056s # ::test_signal default_handler called 1056s # ::test_signal default_handler called 1056s # ::test_signal default_handler called 1056s # signal return: "" 1056s # MAIN: call iface print-string on test and derived object: 1056s # Iface-FOO: "iface-string-from-test-type" from 0xb4e429318870 1056s # Iface-BAR: "iface-string-from-derived-type" from 0xb4e429318720 1056s # chaining: 1056s # Iface-FOO: "iface-string-from-derived-type" from 0xb4e429318720 1056s # private data after initialization: 54321 == 54321 1056s ok 1 /gobject/basics 1056s # End of gobject tests 1056s TAP version 14 1056s # random seed: R02S2fd4e93db8a9e6f843d58dc6e0b104e6 1056s 1..3 1056s # Start of portal-support tests 1056s # Start of snap-classic tests 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/data 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1056s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/no-snapctl: No such file or directory 1056s ok 1 /portal-support/snap-classic/no-snapctl 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/data 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/runtime 1056s # Created snap.yaml in /tmp/test_portal-support-snap-classic_LG5OE3/meta/snap.yaml 1056s # Created snapctl in /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1056s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/none: No such file or directory 1056s ok 2 /portal-support/snap-classic/none 1056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/home 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/cache 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/system-config2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/config 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/system-data2 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/data 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/state 1056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/runtime 1056s # Created snap.yaml in /tmp/test_portal-support-snap-classic_LG5OE3/meta/snap.yaml 1056s # Created snapctl in /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1056s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_LG5OE3/portal-support/snap-classic/all: No such file or directory 1056s ok 3 /portal-support/snap-classic/all 1056s # End of snap-classic tests 1056s # End of portal-support tests 1056s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_LG5OE3: No such file or directory 1056s TAP version 14 1056s # random seed: R02Se64df5c9244acee8982a489e5c461ee9 1056s 1..72 1056s # Start of network-address tests 1056s ok 1 /network-address/basic 1056s ok 2 /network-address/scope-id 1056s ok 3 /network-address/uri-scope-id 1056s ok 4 /network-address/to-string 1056s # Start of parse-host tests 1056s ok 5 /network-address/parse-host/0 1056s ok 6 /network-address/parse-host/1 1056s ok 7 /network-address/parse-host/2 1056s ok 8 /network-address/parse-host/3 1056s ok 9 /network-address/parse-host/4 1056s ok 10 /network-address/parse-host/5 1056s ok 11 /network-address/parse-host/6 1056s ok 12 /network-address/parse-host/7 1056s ok 13 /network-address/parse-host/8 1056s ok 14 /network-address/parse-host/9 1056s ok 15 /network-address/parse-host/10 1056s ok 16 /network-address/parse-host/11 1056s ok 17 /network-address/parse-host/12 1056s ok 18 /network-address/parse-host/13 1056s # End of parse-host tests 1056s # Start of parse-uri tests 1056s ok 19 /network-address/parse-uri/0 1056s ok 20 /network-address/parse-uri/1 1056s ok 21 /network-address/parse-uri/2 1056s ok 22 /network-address/parse-uri/3 1056s ok 23 /network-address/parse-uri/4 1056s ok 24 /network-address/parse-uri/5 1056s ok 25 /network-address/parse-uri/6 1056s ok 26 /network-address/parse-uri/7 1056s ok 27 /network-address/parse-uri/8 1056s ok 28 /network-address/parse-uri/9 1056s # End of parse-uri tests 1056s # Start of resolve-address tests 1056s # Input: 192.168.1.2 1056s ok 29 /network-address/resolve-address/0 1056s # Input: fe80::42 1056s ok 30 /network-address/resolve-address/1 1056s # Input: 192.168.1.2:80 1056s ok 31 /network-address/resolve-address/2 1056s # Input: [fe80::42] 1056s ok 32 /network-address/resolve-address/3 1056s # Input: [fe80::42]:80 1056s ok 33 /network-address/resolve-address/4 1056s # Input: 192.168.258 1056s ok 34 /network-address/resolve-address/5 1056s # Input: 192.11010306 1056s ok 35 /network-address/resolve-address/6 1056s # Input: 3232235778 1056s ok 36 /network-address/resolve-address/7 1056s # Input: 0300.0250.0001.0001 1056s ok 37 /network-address/resolve-address/8 1056s # Input: 0xC0.0xA8.0x01.0x02 1056s ok 38 /network-address/resolve-address/9 1056s # Input: 0xc0.0xa8.0x01.0x02 1056s ok 39 /network-address/resolve-address/10 1056s # Input: 0xc0a80102 1056s ok 40 /network-address/resolve-address/11 1056s # End of resolve-address tests 1056s # Start of loopback tests 1056s ok 41 /network-address/loopback/basic 1056s ok 42 /network-address/loopback/sync 1056s ok 43 /network-address/loopback/async 1056s # End of loopback tests 1056s # Start of localhost tests 1056s ok 44 /network-address/localhost/async 1056s ok 45 /network-address/localhost/sync 1056s # End of localhost tests 1056s # Start of happy-eyeballs tests 1056s ok 46 /network-address/happy-eyeballs/basic 1056s ok 47 /network-address/happy-eyeballs/parallel 1056s ok 48 /network-address/happy-eyeballs/slow-ipv4 1056s ok 49 /network-address/happy-eyeballs/slow-ipv6 1056s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1057s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1057s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1057s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1057s # /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. 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1057s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1057s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1057s ok 57 /network-address/happy-eyeballs/both-error 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1057s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1057s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1057s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1057s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1058s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1058s # End of happy-eyeballs tests 1058s # End of network-address tests 1058s # Start of gresolver tests 1058s # Start of resolve-address tests 1058s # Input: 192.168.1.2 1058s ok 61 /gresolver/resolve-address/0 1058s # Input: fe80::42 1058s ok 62 /gresolver/resolve-address/1 1058s # Input: 192.168.1.2:80 1058s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1058s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1058s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1058s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1058s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1058s ok 63 /gresolver/resolve-address/2 1058s # Input: [fe80::42] 1058s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1058s # Error: Error resolving “[fe80::42]”: Name or service not known 1058s ok 64 /gresolver/resolve-address/3 1058s # Input: [fe80::42]:80 1058s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1058s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1058s ok 65 /gresolver/resolve-address/4 1058s # Input: 192.168.258 1058s # Error: Error resolving “192.168.258”: Name or service not known 1058s ok 66 /gresolver/resolve-address/5 1058s # Input: 192.11010306 1058s # Error: Error resolving “192.11010306”: Name or service not known 1058s ok 67 /gresolver/resolve-address/6 1058s # Input: 3232235778 1058s # Error: Error resolving “3232235778”: Name or service not known 1058s ok 68 /gresolver/resolve-address/7 1058s # Input: 0300.0250.0001.0001 1058s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1058s ok 69 /gresolver/resolve-address/8 1058s # Input: 0xC0.0xA8.0x01.0x02 1058s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1058s ok 70 /gresolver/resolve-address/9 1058s # Input: 0xc0.0xa8.0x01.0x02 1058s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1058s ok 71 /gresolver/resolve-address/10 1058s # Input: 0xc0a80102 1058s # Error: Error resolving “0xc0a80102”: Name or service not known 1058s ok 72 /gresolver/resolve-address/11 1058s # End of resolve-address tests 1058s # End of gresolver tests 1058s ok - glib/network-address.test 1058s # Running test: glib/converter.test 1058s ok - glib/converter.test 1058s # Running test: glib/markup-collect.test 1058s ok - glib/markup-collect.test 1058s # Running test: glib/cancellable.test 1058s TAP version 14 1058s # random seed: R02S3dfae59c75ba98fa4ae5c25576479c56 1058s 1..3 1058s # Start of converter tests 1058s ok 1 /converter/bytes 1058s ok 2 /converter/extra-bytes-at-end 1058s ok 3 /converter/gzip-os-property 1058s # End of converter tests 1058s TAP version 14 1058s # random seed: R02S8ab1160d40ea0f5e21312f85897ecb9f 1058s 1..21 1058s # Start of markup tests 1058s # Start of collect tests 1058s ok 1 /markup/collect/0 1058s ok 2 /markup/collect/1 1058s ok 3 /markup/collect/2 1058s ok 4 /markup/collect/3 1058s ok 5 /markup/collect/4 1058s ok 6 /markup/collect/5 1058s ok 7 /markup/collect/6 1058s ok 8 /markup/collect/7 1058s ok 9 /markup/collect/8 1058s ok 10 /markup/collect/9 1058s ok 11 /markup/collect/10 1058s ok 12 /markup/collect/11 1058s ok 13 /markup/collect/12 1058s ok 14 /markup/collect/13 1058s ok 15 /markup/collect/14 1058s ok 16 /markup/collect/15 1058s ok 17 /markup/collect/16 1058s ok 18 /markup/collect/17 1058s ok 19 /markup/collect/18 1058s ok 20 /markup/collect/19 1058s ok 21 /markup/collect/cleanup 1058s # End of collect tests 1058s # End of markup tests 1058s TAP version 14 1058s # random seed: R02S69455e724cb1ce00b524cc0de21d1b94 1058s 1..18 1058s # Start of cancellable tests 1058s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1058s ok 2 /cancellable/null 1058s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1058s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1058s ok 4 /cancellable/connect-to-disposing-callback 1058s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 1 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 0 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 1 1058s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1058s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1058s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1058s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 1 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 0 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 1 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 0 1058s # Toggle reference callback for GCancellable (0xb3d1ac845c00), last: 1 1058s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1058s # /cancellable/disconnect-on-cancelled-callback-hangs summary: Tests that trying to disconnect a cancellable from the cancelled signal callback will result in a deadlock as per #GCancellable::cancelled 1058s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1058s # /cancellable/resets-on-cancel-callback-hangs summary: Tests that trying to reset a cancellable from the cancelled signal callback will result in a deadlock as per #GCancellable::cancelled 1058s ok 11 /cancellable/resets-on-cancel-callback-hangs 1058s ok 12 /cancellable/poll-fd 1058s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1058s ok 13 /cancellable/poll-fd-cancelled 1058s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1058s # Executing: glib/cancellable.test 1058s ok 14 /cancellable/poll-fd-cancelled-threaded 1058s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1058s ok 15 /cancellable/cancel-reset-races 1058s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1058s not ok 16 /cancellable/cancel-reset-connect-races # TODO We didn't really checked if callbacks is called properly 1058s # End of cancellable tests 1058s # Start of cancellable-source tests 1058s # /cancellable-source/threaded-dispose summary: Test a thread race between disposing of a GCancellableSource (in one thread) and cancelling the GCancellable it refers to (in another thread) 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1059s ok 17 /cancellable-source/threaded-dispose 1059s # slow test /cancellable-source/threaded-dispose executed in 0.69 secs 1059s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1059s ok 18 /cancellable-source/can-be-fired-multiple-times 1059s # End of cancellable-source tests 1059s ok - glib/cancellable.test 1059s # Running test: glib/gdbus-close-pending.test 1059s TAP version 14 1059s # random seed: R02S199075a5aab3fadc6f06dd4d86a995e1 1059s 1..2 1059s # Start of gdbus tests 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_5YDME3/gdbus/close-pending/.dirs/runtime 1059s ok 1 /gdbus/close-pending 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_5YDME3/gdbus/unref-pending/.dirs/runtime 1059s ok 2 /gdbus/unref-pending 1059s # End of gdbus tests 1059s ok - glib/gdbus-close-pending.test 1059s # Running test: glib/data-input-stream.test 1059s TAP version 14 1059s # random seed: R02Sd0d909154dc42917daa433b99c040578 1059s 1..10 1059s # Start of data-input-stream tests 1059s ok 1 /data-input-stream/basic 1059s ok 2 /data-input-stream/read-lines-LF 1059s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1059s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1059s ok 5 /data-input-stream/read-lines-CR 1059s ok 6 /data-input-stream/read-lines-CR-LF 1059s ok 7 /data-input-stream/read-lines-any 1059s ok 8 /data-input-stream/read-until 1059s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1059s # Test vector 1: {"key": "value"}? and ? 1059s ok 9 /data-input-stream/read-upto 1059s ok 10 /data-input-stream/read-int 1059s # End of data-input-stream tests 1059s ok - glib/data-input-stream.test 1059s # Running test: glib/ifaceproperties.test 1059s TAP version 14 1059s # random seed: R02S16092a45ac72b3538a7f668b0216cce9 1059s 1..7 1059s # Start of interface tests 1059s # Start of properties tests 1059s ok 1 /interface/properties/set 1059s ok 2 /interface/properties/notify 1059s ok 3 /interface/properties/find-overridden 1059s ok 4 /interface/properties/list-overridden 1059s ok 5 /interface/properties/find-interface 1059s ok 6 /interface/properties/list-interface 1059s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1059s ok 7 /interface/properties/not-overridden 1059s # End of properties tests 1059s # End of interface tests 1059s ok - glib/ifaceproperties.test 1059s # Running test: glib/g-icon.test 1059s TAP version 14 1059s # random seed: R02S78308b9406657efb8e8626b62b3af07e 1059s 1..6 1059s # Start of icons tests 1059s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1059s ok 1 /icons/to-string 1059s ok 2 /icons/serialize 1059s ok 3 /icons/themed 1059s ok 4 /icons/emblemed 1059s ok 5 /icons/file 1059s ok - glib/g-icon.test 1059s # Running test: glib/deprecated-properties.test 1059s ok - glib/deprecated-properties.test 1059s # Running test: glib/data-output-stream.test 1059s ok - glib/data-output-stream.test 1059s # Running test: glib/test-printf.test 1059s ok 6 /icons/bytes 1059s # End of icons tests 1059s TAP version 14 1059s # random seed: R02S828efe0bc081e7d006318f9b14fa771c 1059s 1..3 1059s # Start of deprecated-properties tests 1059s ok 1 /deprecated-properties/construct 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1059s ok 2 /deprecated-properties/default-construct 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1059s ok 3 /deprecated-properties/set 1059s # End of deprecated-properties tests 1059s TAP version 14 1059s # random seed: R02S7e83cc655354be6a6a6905debc2e91bc 1059s 1..7 1059s # Start of data-output-stream tests 1059s ok 1 /data-output-stream/basic 1059s ok 2 /data-output-stream/write-lines-LF 1059s ok 3 /data-output-stream/write-lines-CR 1059s ok 4 /data-output-stream/write-lines-CR-LF 1059s ok 5 /data-output-stream/write-int 1059s ok 6 /data-output-stream/seek 1059s ok 7 /data-output-stream/truncate 1059s # End of data-output-stream tests 1059s TAP version 14 1059s # random seed: R02Sfd441c71d978b5d587f36a89e085916a 1059s 1..24 1059s # Start of snprintf tests 1059s ok 1 /snprintf/retval-and-trunc 1059s ok 2 /snprintf/%d 1059s ok 3 /snprintf/%d-invalid 1059s ok 4 /snprintf/%o 1059s ok 5 /snprintf/%u 1059s ok 6 /snprintf/%x 1059s ok 7 /snprintf/%X 1059s ok 8 /snprintf/%f 1059s ok 9 /snprintf/%e 1059s ok 10 /snprintf/%c 1059s ok 11 /snprintf/%s 1059s ok 12 /snprintf/%n 1059s ok 13 /snprintf/test-percent 1059s ok 14 /snprintf/test-positional-params 1059s ok 15 /snprintf/test-64bit 1059s ok 16 /snprintf/produce-embedded-nulls 1059s # End of snprintf tests 1059s # Start of printf tests 1059s ok 17 /printf/test-percent 1059s ok 18 /printf/test-positional-params 1059s ok 19 /printf/test-64bit 1059s # Start of test-64bit tests 1059s # Start of subprocess tests 1059s # End of subprocess tests 1059s # End of test-64bit tests 1059s # End of printf tests 1059s # Start of fprintf tests 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3761 1059s # /fprintf/produce-embedded-nulls summary: printf() functions can produce strings with embedded null characters. That happens when passing individual characters (%c) with value ' 1059s ok 20 /fprintf/produce-embedded-nulls 1059s # End of fprintf tests 1059s # Start of sprintf tests 1059s ok 21 /sprintf/test-positional-params 1059s ok 22 /sprintf/upper-bound 1059s # End of sprintf tests 1059s # Start of vasprintf tests 1059s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1059s ok 23 /vasprintf/invalid-format-placeholder 1059s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1059s ok 24 /vasprintf/invalid-wide-string 1059s # End of vasprintf tests 1059s TAP version 14 1059s # random seed: R02S7da188e63ce5971d0e469de3e7a5f514 1059s 1..2 1059s # Start of gtask tests 1059s # 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. 1059s ok 1 /gtask/name 1059s # Start of name tests 1059s # 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. 1059s ok 2 /gtask/name/macro-wrapper 1059s # End of name tests 1059s # End of gtask tests 1059s TAP version 14 1059s # random seed: R02S63a911c24fe8a579c9d00ebb68bacf15 1059s 1..1 1059s # Start of gobject tests 1059s # Start of refcount tests 1059s # init 0xc2cba8b1e4a0 1059s # 1059s # init 0xc2cba8b16580 1059s # 1059s ok - glib/test-printf.test 1059s # Running test: glib/cxx.test 1059s ok - glib/cxx.test 1059s # Running test: glib/signals-refcount2.test 1063s # Executing: glib/signals-refcount2.test 1064s # dispose 0xc2cba8b1e4a0! 1064s # 1064s # dispose 0xc2cba8b16580! 1064s # 1064s ok 1 /gobject/refcount/signals 1064s # slow test /gobject/refcount/signals executed in 5.00 secs 1064s # End of refcount tests 1064s # End of gobject tests 1064s ok - glib/signals-refcount2.test 1064s # Running test: glib/gdbus-connection-flush.test 1064s TAP version 14 1064s # random seed: R02Sb950c5e4d0037b275fe047f75a26dae8 1064s 1..2 1064s # Start of gdbus tests 1064s # Start of connection tests 1064s # Start of flush tests 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/busy/.dirs/runtime 1064s ok 1 /gdbus/connection/flush/busy 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_CU71E3/gdbus/connection/flush/idle/.dirs/runtime 1064s ok - glib/gdbus-connection-flush.test 1064s # Running test: glib/autoptr-girepository.test 1064s ok 2 /gdbus/connection/flush/idle 1064s # End of flush tests 1064s # End of connection tests 1064s # End of gdbus tests 1064s TAP version 14 1064s # random seed: R02S06252535dc982a63419a7e315980cad4 1064s 1..24 1064s # Start of autoptr tests 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/repository/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 1 /autoptr/repository 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/typelib/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 2 /autoptr/typelib 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/base-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 3 /autoptr/base-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/arg-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 4 /autoptr/arg-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callable-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 5 /autoptr/callable-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/callback-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 6 /autoptr/callback-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/constant-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 7 /autoptr/constant-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/enum-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 8 /autoptr/enum-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/field-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 9 /autoptr/field-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/flags-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 10 /autoptr/flags-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/function-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 11 /autoptr/function-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/interface-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 12 /autoptr/interface-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/object-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 13 /autoptr/object-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/property-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 14 /autoptr/property-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/registered-type-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 15 /autoptr/registered-type-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/signal-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 16 /autoptr/signal-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/struct-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 17 /autoptr/struct-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/type-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 18 /autoptr/type-info 1064s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/home 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/cache 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/system-config2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/config 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/system-data2 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/data 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/state 1064s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/union-info/.dirs/runtime 1064s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1064s ok 19 /autoptr/union-info 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/value-info/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s ok 20 /autoptr/value-info 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/autoptr/vfunc-info/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s ok 21 /autoptr/vfunc-info 1065s # End of autoptr tests 1065s # Start of auto tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/auto/arg-info/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s ok 22 /auto/arg-info 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/auto/type-info/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s ok 23 /auto/type-info 1065s ok - glib/autoptr-girepository.test 1065s # Running test: glib/network-monitor.test 1065s ok - glib/network-monitor.test 1065s # Running test: glib/timer.test 1065s ok - glib/timer.test 1065s # Running test: glib/memory-monitor.test 1065s ok - glib/memory-monitor.test 1065s # Running test: glib/registered-type-info.test 1065s ok - glib/registered-type-info.test 1065s # Running test: glib/option-context.test 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_RMA1E3/auto/function-invoker/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s ok 24 /auto/function-invoker 1065s # End of auto tests 1065s TAP version 14 1065s # random seed: R02S79fec059da3c0a03eb672921f3bb4fc7 1065s 1..4 1065s # Start of network-monitor tests 1065s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1065s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1065s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1065s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1065s ok 1 /network-monitor/default 1065s ok 2 /network-monitor/remove_default 1065s ok 3 /network-monitor/add_networks 1065s ok 4 /network-monitor/remove_networks 1065s # End of network-monitor tests 1065s TAP version 14 1065s # random seed: R02S4053625fbd5e02fed4918938cfba0986 1065s 1..10 1065s # Start of timer tests 1065s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1065s ok 2 /timer/stop 1065s ok 3 /timer/continue 1065s ok 4 /timer/reset 1065s ok 5 /timer/is_active 1065s # End of timer tests 1065s # Start of timeval tests 1065s ok 6 /timeval/add 1065s ok 7 /timeval/from-iso8601 1065s ok 8 /timeval/to-iso8601 1065s # Start of to-iso8601 tests 1065s ok 9 /timeval/to-iso8601/overflow 1065s # End of to-iso8601 tests 1065s # End of timeval tests 1065s # Start of usleep tests 1065s ok 10 /usleep/with-zero-wait 1065s # End of usleep tests 1065s TAP version 14 1065s # random seed: R02S2b232118ffa0bac46aa4aa9f61203ff1 1065s 1..1 1065s # Start of memory-monitor tests 1065s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1065s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 1065s ok 1 /memory-monitor/default 1065s # End of memory-monitor tests 1065s TAP version 14 1065s # random seed: R02S18acbf866e4174aa50f1c2f0cf0e4da3 1065s 1..1 1065s # Start of registered-type-info tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_BPS0E3/registered-type-info/boxed/.dirs/runtime 1065s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1065s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1065s # Expecting CClosure to not be boxed 1065s # Expecting TypeCValue to not be boxed 1065s # Expecting InitiallyUnownedClass to not be boxed 1065s # Expecting BookmarkFile to be boxed 1065s # Expecting Closure to be boxed 1065s # Expecting Object to not be boxed 1065s ok 1 /registered-type-info/boxed 1065s # End of registered-type-info tests 1065s TAP version 14 1065s # random seed: R02S32383d07463b3aa15ee41c4ffbae1d76 1065s 1..59 1065s # Start of option tests 1065s ok 1 /option/basic 1065s ok 2 /option/translate 1065s ok 3 /option/strict-posix 1065s # Testing command: program --double abc 1065s # Testing command: program --double 2e309 1065s # Testing command: program --int abc 1065s # Testing command: program --int 99999999999999999999999999999999999 1065s # Testing command: program --int64 abc 1065s # Testing command: program --int64 99999999999999999999999999999999999 1065s ok 4 /option/parsing-errors 1065s # Start of help tests 1065s ok 5 /option/help/options 1065s ok 6 /option/help/no-options 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1065s ok 7 /option/help/no-help-options 1065s # Usage: 1065s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1065s # 1065s # Summary 1065s # 1065s # Help Options: 1065s # -h, --help Show help options 1065s # 1065s # Application Options: 1065s # -t, --test=Argument to use in test (deprecated) Test tests 1065s # --test2 Tests also 1065s # 1065s # Description 1065s # 1065s ok 8 /option/help/deprecated 1065s # End of help tests 1065s # Start of group tests 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1065s ok 9 /option/group/captions 1065s ok 10 /option/group/main 1065s ok 11 /option/group/error-hook 1065s ok 12 /option/group/parse 1065s # Start of captions tests 1065s # Start of subprocess tests 1065s # End of subprocess tests 1065s # End of captions tests 1065s # End of group tests 1065s # Start of restoration tests 1065s ok 13 /option/restoration/int 1065s ok 14 /option/restoration/string 1065s ok 15 /option/restoration/boolean 1065s # End of restoration tests 1065s # Start of arg tests 1065s ok 16 /option/arg/reverse-string 1065s ok 17 /option/arg/optional-int 1065s # Start of repetition tests 1065s ok 18 /option/arg/repetition/int 1065s ok 19 /option/arg/repetition/string 1065s ok 20 /option/arg/repetition/filename 1065s ok 21 /option/arg/repetition/double 1065s ok 22 /option/arg/repetition/locale 1065s ok 23 /option/arg/repetition/int64 1065s # End of repetition tests 1065s # Start of array tests 1065s ok 24 /option/arg/array/string 1065s # End of array tests 1065s # Start of callback tests 1065s ok 25 /option/arg/callback/string 1065s ok 26 /option/arg/callback/count 1065s ok 27 /option/arg/callback/optional1 1065s ok 28 /option/arg/callback/optional2 1065s ok 29 /option/arg/callback/optional3 1065s ok 30 /option/arg/callback/optional4 1065s ok 31 /option/arg/callback/optional5 1065s ok 32 /option/arg/callback/optional6 1065s ok 33 /option/arg/callback/optional7 1065s ok 34 /option/arg/callback/optional8 1065s # End of callback tests 1065s # Start of remaining tests 1065s ok 35 /option/arg/remaining/callback 1065s ok 36 /option/arg/remaining/callback-false 1065s ok 37 /option/arg/remaining/non-option 1065s ok 38 /option/arg/remaining/separator 1065s ok 39 /option/arg/remaining/array 1065s # End of remaining tests 1065s # Start of ignore tests 1065s ok 40 /option/arg/ignore/long 1065s ok 41 /option/arg/ignore/short 1065s ok 42 /option/arg/ignore/arg 1065s # End of ignore tests 1065s # Start of rest tests 1065s ok 43 /option/arg/rest/non-option 1065s ok 44 /option/arg/rest/separator1 1065s ok 45 /option/arg/rest/separator2 1065s ok 46 /option/arg/rest/separator3 1065s ok 47 /option/arg/rest/separator4 1065s ok 48 /option/arg/rest/separator5 1065s # End of rest tests 1065s # End of arg tests 1065s # Start of context tests 1065s ok 49 /option/context/add 1065s ok 50 /option/context/empty2 1065s ok 51 /option/context/empty3 1065s # End of context tests 1065s # Start of bug tests 1065s ok - glib/option-context.test 1065s # Running test: glib/dynamictests.test 1065s ok - glib/dynamictests.test 1065s # Running test: glib/sleepy-stream.test 1065s ok - glib/sleepy-stream.test 1065s # Running test: glib/signal-handler.test 1065s ok - glib/signal-handler.test 1065s # Running test: glib/unix-streams.test 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1065s ok 52 /option/bug/unknown-short 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1065s ok 53 /option/bug/lonely-dash 1065s ok 54 /option/bug/triple-dash 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1065s ok 55 /option/bug/missing-arg 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1065s ok 56 /option/bug/dash-arg 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1065s ok 57 /option/bug/short-remaining 1065s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1065s ok 58 /option/bug/double-free 1065s ok 59 /option/bug/double-zero 1065s # End of bug tests 1065s # End of option tests 1065s TAP version 14 1065s # random seed: R02S228c7a8d03c4bc924db7d124142a3287 1065s 1..2 1065s # Start of GObject tests 1065s ok 1 /GObject/threaded-dynamic-ref-unref-init 1065s ok 2 /GObject/dynamic-interface-properties 1065s # End of GObject tests 1065s TAP version 14 1065s # random seed: R02S7deb28ee7339f17226f5123b53789aff 1065s 1..2 1065s # Start of filter-stream tests 1065s ok 1 /filter-stream/input 1065s ok 2 /filter-stream/async 1065s # End of filter-stream tests 1065s TAP version 14 1065s # random seed: R02S27750286eeecc55cca913a615af8f93d 1065s 1..7 1065s # Start of signal tests 1065s # Start of handler tests 1065s # min perf: connected 1 handlers in 0.000 seconds 1065s ok 1 /signal/handler/connect-many 1065s # min perf: disconnected 1 handlers in 0.000 seconds 1065s ok 2 /signal/handler/disconnect-many-ordered 1065s # min perf: disconnected 1 handlers in 0.000 seconds 1065s ok 3 /signal/handler/disconnect-many-inverse 1065s # min perf: disconnected 1 handlers in 0.000 seconds 1065s ok 4 /signal/handler/disconnect-many-random 1065s # min perf: disconnected 1 handlers in 0.000 seconds 1065s ok 5 /signal/handler/disconnect-2-signals 1065s # min perf: disconnected 1 handlers in 0.000 seconds 1065s ok 6 /signal/handler/disconnect-2-objects 1065s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1065s ok 7 /signal/handler/block-many 1065s # End of handler tests 1065s # End of signal tests 1065s TAP version 14 1065s # random seed: R02S76020a63b2fd555f31b3b10f5d44b780 1065s 1..9 1065s # Start of unix-streams tests 1065s ok 1 /unix-streams/basic 1066s ok 2 /unix-streams/pipe-io-test 1066s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1066s ok - glib/unix-streams.test 1066s ok 3 /unix-streams/nonblocking-io-test 1066s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1066s ok 4 /unix-streams/read_write 1066s ok 5 /unix-streams/read_writev 1066s ok 6 /unix-streams/write-wouldblock 1066s ok 7 /unix-streams/writev-wouldblock 1066s ok 8 /unix-streams/write-async-wouldblock 1066s ok 9 /unix-streams/writev-async-wouldblock 1066s # End of unix-streams tests 1066s TAP version 14 1066s # random seed: R02Sde5d155cb7220b1aa57709a76ed69464 1066s 1..2 1066s # Start of qdata tests 1066s ok 1 /qdata/threaded 1066s ok 2 /qdata/dup 1066s # End of qdata tests 1066s TAP version 14 1066s # random seed: R02Sabcc2bf0a5c9b3b56e8b4f40d4be8607 1066s 1..1 1066s # Start of null-settings-backend tests 1066s ok 1 /null-settings-backend/extension-point-registered 1066s # End of null-settings-backend tests 1066s TAP version 13 1066s ok 1 __main__.TestGICompileRepository.test_open_failure 1066s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1066s # gi-compile-repository: /usr/bin/gi-compile-repository 1066s # tmpdir: /tmp/tmptun1evlc 1066s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmptun1evlc/invalid.typelib'] 1066s # Return code: 1 1066s # Output: 1066s # 1066s # Error: 1066s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1066s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1066s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1066s # gi-compile-repository: /usr/bin/gi-compile-repository 1066s # tmpdir: /tmp/tmpfv1ik5gv 1066s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmpfv1ik5gv/GLib-2.typelib'] 1066s # Return code: 0 1066s # Output: 1066s # 1066s # Error: 1066s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1066s # gi-compile-repository: /usr/bin/gi-compile-repository 1066s # tmpdir: /tmp/tmpvxdd0kue 1066s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1066s # Return code: 1 1066s # Output: 1066s # 1066s # Error: 1066s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1066s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1066s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1066s # gi-compile-repository: /usr/bin/gi-compile-repository 1066s # tmpdir: /tmp/tmp0uzg7we0 1066s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmp0uzg7we0/GObject-2.typelib', '--includedir', '/usr/lib/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1066s # Return code: 0 1066s # Output: 1066s # 1066s # Error: 1066s # Running test: glib/qdata.test 1066s ok - glib/qdata.test 1066s # Running test: glib/null-settings-backend.test 1066s ok - glib/null-settings-backend.test 1066s # Running test: glib/gi-compile-repository.py.test 1066s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1066s # gi-compile-repository: /usr/bin/gi-compile-repository 1066s # tmpdir: /tmp/tmp41jifdao 1066s # 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/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1066s # Return code: 1 1066s # Output: 1066s # 1066s # Error: 1066s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1067s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1067s # gir path set to [PosixPath('/usr/lib/aarch64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1067s # gi-compile-repository: /usr/bin/gi-compile-repository 1067s # tmpdir: /tmp/tmp9haer9wx 1067s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp9haer9wx/Gio-2.typelib', '--includedir', '/usr/lib/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1067s # Return code: 0 1067s # Output: 1067s # 1067s # Error: 1067s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1067s # gi-compile-repository: /usr/bin/gi-compile-repository 1067s # tmpdir: /tmp/tmp8o_05orb 1067s # 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/aarch64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1067s # Return code: 1 1067s # Output: 1067s # 1067s # Error: 1067s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1067s 1..7 1067s ok - glib/gi-compile-repository.py.test 1067s # Running test: glib/callable-info.test 1067s TAP version 14 1067s # random seed: R02S59db1e1d59c7d87cc8cfe4915b7758d3 1067s 1..6 1067s # Start of callable-info tests 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/sync-function/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s ok 1 /callable-info/sync-function 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/async-function/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s ok 2 /callable-info/async-function 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/is-method/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s ok 3 /callable-info/is-method 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/static-method/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s ok 4 /callable-info/static-method 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/system-data2 1067s ok - glib/callable-info.test 1067s # Running test: glib/power-profile-monitor-dbus.test 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/static-vfunc/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1067s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1067s # Start of platform tests 1067s # Start of unix tests 1067s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/home 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/cache 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/system-config2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/config 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/system-data2 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/data 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/state 1067s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_5VWME3/callable-info/platform/unix/is-method/.dirs/runtime 1067s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1067s # Checking DesktopAppInfo in Gio 1067s # Checking DesktopAppInfo in GioUnix 1067s ok 6 /callable-info/platform/unix/is-method 1067s # End of unix tests 1067s # End of platform tests 1067s # End of callable-info tests 1067s TAP version 13 1067s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1067s 1..1 1067s ok - glib/power-profile-monitor-dbus.test 1067s # Running test: glib/defaultvalue.test 1067s TAP version 14 1067s # random seed: R02Se9180fb0f41961a7d2b88d8fa5db28af 1067s 1..84 1067s # Start of Default Values tests 1067s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1067s ok 2 /Default Values/GAppLaunchContext 1067s ok 3 /Default Values/GApplicationCommandLine 1067s # skipping GApplication:is-remote 1067s ok 4 /Default Values/GApplication 1067s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1067s ok 6 /Default Values/GBindingGroup 1067s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1067s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1067s ok 9 /Default Values/GBytesIcon 1067s ok 10 /Default Values/GCancellable 1067s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1067s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1067s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1067s ok 14 /Default Values/GCredentials 1067s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1067s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1067s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1067s ok 18 /Default Values/GDBusAuthObserver 1067s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1067s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1067s ok 21 /Default Values/GDBusMessage 1067s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1067s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1067s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1067s ok 25 /Default Values/GDBusObjectProxy 1067s ok 26 /Default Values/GDBusObjectSkeleton 1067s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1067s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1067s ok 29 /Default Values/GEmblem 1067s ok 30 /Default Values/GEmblemedIcon 1067s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1067s ok 32 /Default Values/GFileInfo 1067s ok 33 /Default Values/GFileInputStream 1067s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1067s ok 35 /Default Values/GFileOutputStream 1067s ok 36 /Default Values/GFilenameCompleter 1067s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1067s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1067s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1067s ok 40 /Default Values/GInitiallyUnowned 1067s ok 41 /Default Values/GIOModule 1067s ok 42 /Default Values/GListStore 1067s ok 43 /Default Values/GMemoryInputStream 1067s ok 44 /Default Values/GMemoryOutputStream 1067s ok 45 /Default Values/GMenu 1067s ok 46 /Default Values/GMenuItem 1067s ok 47 /Default Values/GMountOperation 1067s ok 48 /Default Values/GNativeSocketAddress 1067s ok 49 /Default Values/GNetworkAddress 1067s ok 50 /Default Values/GNetworkService 1067s ok 51 /Default Values/GNotification 1067s ok 52 /Default Values/GObject 1067s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1067s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1067s # skipping GProxyAddressEnumerator:proxy-resolver 1067s ok 54 /Default Values/GProxyAddressEnumerator 1067s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1067s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1067s ok 57 /Default Values/GSignalGroup 1067s ok 58 /Default Values/GSimpleAction 1067s ok 59 /Default Values/GSimpleActionGroup 1067s ok 60 /Default Values/GSimpleAsyncResult 1067s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1067s ok 62 /Default Values/GSimplePermission 1067s ok 63 /Default Values/GSimpleProxyResolver 1067s # skipping GSocketClient:proxy-resolver 1067s ok 64 /Default Values/GSocketClient 1067s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1067s ok 66 /Default Values/GSocket # SKIP initialization failed 1067s ok 67 /Default Values/GSocketListener 1067s ok 68 /Default Values/GSocketService 1067s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1067s ok 70 /Default Values/GSubprocessLauncher 1067s # GLib-GIO-DEBUG: GTask 0xbad9eee78aa0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1067s ok 71 /Default Values/GTask 1067s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1067s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1067s ok 74 /Default Values/GTestDBus 1067s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1067s ok 76 /Default Values/GThreadedSocketService 1067s ok 77 /Default Values/GTlsInteraction 1067s ok 78 /Default Values/GTlsPassword 1067s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1067s ok 80 /Default Values/GUnixFDList 1067s ok - glib/defaultvalue.test 1067s # Running test: glib/deftype.test 1067s ok - glib/deftype.test 1067s # Running test: glib/override.test 1067s ok - glib/override.test 1067s # Running test: glib/dataset.test 1067s ok 81 /Default Values/GVfs 1067s ok 82 /Default Values/GVolumeMonitor 1067s ok 83 /Default Values/GZlibCompressor 1067s ok 84 /Default Values/GZlibDecompressor 1067s # End of Default Values tests 1067s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1067s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1067s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1067s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1067s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1067s TAP version 14 1067s # random seed: R02S02e960d9cdae4d632af88d9a59ff2d59 1067s 1..1 1067s # Start of gobject tests 1067s # *** emitting foo on a TestA instance 1067s # Expecting: TestA::foo,TestI::foo 1067s # Got: TestA::foo,TestI::foo 1067s # *** emitting bar on a TestA instance 1067s # Expecting: TestA::bar 1067s # Got: TestA::bar 1067s # *** emitting baz on a TestA instance 1067s # Expecting: TestA::baz 1067s # Got: TestA::baz 1067s # *** emitting foo on a TestB instance 1067s # Expecting: TestB::foo,TestA::foo,TestI::foo 1067s # Got: TestB::foo,TestA::foo,TestI::foo 1067s # *** emitting bar on a TestB instance 1067s # Expecting: TestB::bar,TestA::bar 1067s # Got: TestB::bar,TestA::bar 1067s # *** emitting baz on a TestB instance 1067s # Expecting: TestB::baz,TestA::baz 1067s # Got: TestB::baz,TestA::baz 1067s # *** emitting foo on a TestC instance 1067s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1067s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1067s # *** emitting bar on a TestC instance 1067s # Expecting: TestC::bar,TestB::bar,TestA::bar 1067s # Got: TestC::bar,TestB::bar,TestA::bar 1067s # *** emitting baz on a TestC instance 1067s # Expecting: TestC::baz,TestB::baz,TestA::baz 1067s # Got: TestC::baz,TestB::baz,TestA::baz 1067s ok 1 /gobject/override 1067s # End of gobject tests 1067s ok - glib/dataset.test 1067s # Running test: glib/once.test 1067s ok - glib/once.test 1067s # Running test: glib/gutils-user-database.test 1067s ok - glib/gutils-user-database.test 1067s # Running test: glib/pollable.test 1067s TAP version 14 1067s # random seed: R02Sdd60107a033c2c08b03a170236eec338 1067s 1..15 1067s # Start of quark tests 1067s ok 1 /quark/basic 1067s ok 2 /quark/string 1067s # End of quark tests 1067s # Start of dataset tests 1067s ok 3 /dataset/basic 1067s ok 4 /dataset/id 1067s ok 5 /dataset/full 1067s ok 6 /dataset/foreach 1067s ok 7 /dataset/destroy 1067s # End of dataset tests 1067s # Start of datalist tests 1067s ok 8 /datalist/id 1067s ok 9 /datalist/recursive-clear 1067s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1067s ok 10 /datalist/id-remove-multiple 1067s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1067s ok 11 /datalist/id-remove-multiple-destroy-order 1067s ok 12 /datalist/update-atomic 1067s # Start of basic tests 1067s ok 13 /datalist/basic/few 1067s ok 14 /datalist/basic/many 1067s # End of basic tests 1067s # Start of id-remove-multiple tests 1067s ok 15 /datalist/id-remove-multiple/resize 1067s # End of id-remove-multiple tests 1067s # End of datalist tests 1067s TAP version 14 1067s # random seed: R02S6130abc31cc9f8160c82d58a9fa27607 1067s 1..5 1067s # Start of once tests 1067s # /once/single-threaded summary: Test g_once() usage from a single thread 1067s ok 1 /once/single-threaded 1067s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1067s ok 2 /once/multi-threaded 1067s # End of once tests 1067s # Start of once-init tests 1067s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1067s ok 3 /once-init/single-threaded 1067s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1067s ok 4 /once-init/multi-threaded 1067s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1067s ok 5 /once-init/string 1067s # End of once-init tests 1067s TAP version 14 1067s # random seed: R02Scc37bc6994b9a6c71dc1f21c0b67581f 1067s 1..1 1067s # Start of gutils tests 1067s ok 1 /gutils/get_user_database_entry 1067s # End of gutils tests 1067s TAP version 14 1067s # random seed: R02Sab9c32f070e15655348d5f84697def19 1067s ok - glib/pollable.test 1067s # Running test: glib/gvariant.test 1067s 1..6 1067s # Start of pollable tests 1067s ok 1 /pollable/converter 1067s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1067s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xab4d15856c80 and GSocketClientAsyncConnectData 0xab4d158637a0 1067s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1067s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1067s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xab4d15859e30 for GSocketClientAsyncConnectData 0xab4d158637a0 1067s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1067s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1067s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1067s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1067s ok 2 /pollable/socket 1067s # Start of unix tests 1067s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1067s ok 3 /pollable/unix/pipe 1067s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1067s ok 4 /pollable/unix/pty 1067s # /pollable/unix/file summary: Test that regular files are not considered pollable 1067s ok 5 /pollable/unix/file 1067s # /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 1067s ok 6 /pollable/unix/nulldev 1067s # End of unix tests 1067s # End of pollable tests 1067s TAP version 14 1067s # random seed: R02Sa4256678443586386b3a33e69309f446 1067s 1..69 1067s # Start of gvariant tests 1067s ok 1 /gvariant/type 1068s ok 2 /gvariant/typeinfo 1068s ok 3 /gvariant/string 1068s ok 4 /gvariant/utf8 1068s ok 5 /gvariant/utf8-new-strings 1068s ok 6 /gvariant/containers 1068s ok 7 /gvariant/format-strings 1068s ok 8 /gvariant/invalid-varargs 1068s ok 9 /gvariant/varargs 1068s ok 10 /gvariant/valist 1068s ok 11 /gvariant/builder-memory 1068s ok 12 /gvariant/hashing 1068s ok 13 /gvariant/byteswap 1068s # Executing: glib/gvariant.test 1068s ok 14 /gvariant/parser 1068s ok 15 /gvariant/parse-failures 1068s ok 16 /gvariant/parse-positional 1068s ok 17 /gvariant/floating 1068s ok 18 /gvariant/bytestring 1068s ok 19 /gvariant/lookup-value 1068s ok 20 /gvariant/lookup 1068s ok 21 /gvariant/compare 1068s ok 22 /gvariant/equal 1068s ok 23 /gvariant/fixed-array 1068s ok 24 /gvariant/check-format-string 1068s ok 25 /gvariant/checksum-basic 1068s ok 26 /gvariant/checksum-nested 1068s ok 27 /gvariant/gbytes 1068s ok 28 /gvariant/print-context 1068s ok 29 /gvariant/error-quark 1068s ok 30 /gvariant/stack-builder-init 1068s ok 31 /gvariant/stack-builder-init-static 1068s ok 32 /gvariant/stack-builder-init-unset 1068s ok 33 /gvariant/stack-dict-init 1068s ok 34 /gvariant/unaligned-construction 1068s # Start of type tests 1068s # Start of string-scan tests 1068s # Start of recursion tests 1068s ok 35 /gvariant/type/string-scan/recursion/tuple 1068s ok 36 /gvariant/type/string-scan/recursion/array 1068s # End of recursion tests 1068s # End of string-scan tests 1068s # End of type tests 1068s # Start of serialiser tests 1068s ok 37 /gvariant/serialiser/maybe 1068s ok 38 /gvariant/serialiser/array 1068s ok 39 /gvariant/serialiser/tuple 1068s ok 40 /gvariant/serialiser/variant 1068s ok 41 /gvariant/serialiser/strings 1070s ok 42 /gvariant/serialiser/byteswap 1070s # slow test /gvariant/serialiser/byteswap executed in 1.39 secs 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1070s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1070s ok 43 /gvariant/serialiser/children 1070s # Start of byteswap tests 1070s ok 44 /gvariant/serialiser/byteswap/zero-sized 1070s # End of byteswap tests 1070s # Start of fuzz tests 1070s ok 45 /gvariant/serialiser/fuzz/1% 1070s ok 46 /gvariant/serialiser/fuzz/5% 1070s ok 47 /gvariant/serialiser/fuzz/9% 1071s ok 48 /gvariant/serialiser/fuzz/13% 1073s # Executing: glib/gvariant.test 1073s ok 49 /gvariant/serialiser/fuzz/17% 1073s # slow test /gvariant/serialiser/fuzz/17% executed in 2.57 secs 1073s # End of fuzz tests 1073s # End of serialiser tests 1073s # Start of utf8 tests 1073s # Start of subprocess tests 1073s # End of subprocess tests 1073s # End of utf8 tests 1073s # Start of varargs tests 1073s # Start of subprocess tests 1073s # End of subprocess tests 1073s # End of varargs tests 1073s # Start of byteswap tests 1073s # /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. 1073s ok 50 /gvariant/byteswap/non-normal-non-aligned 1073s # End of byteswap tests 1073s # Start of parser tests 1073s ok 51 /gvariant/parser/integer-bounds 1073s ok 52 /gvariant/parser/recursion 1073s # Start of recursion tests 1073s ok 53 /gvariant/parser/recursion/typedecls 1073s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1073s ok - glib/gvariant.test 1073s # Running test: glib/fileattributematcher.test 1073s ok - glib/fileattributematcher.test 1073s # Running test: glib/error.test 1073s ok - glib/error.test 1073s # Running test: glib/rcbox.test 1073s ok - glib/rcbox.test 1073s # Running test: glib/gobject-query.py.test 1073s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1073s # Text form 0: @mmmu 5 1073s # Text form 1: @mmmas ['hello'] 1073s # Text form 2: @mmmu just just nothing 1073s # Text form 3: @mmmas just just nothing 1073s # Text form 4: @mmmu just nothing 1073s # Text form 5: @mmmas just nothing 1073s # Text form 6: @mmmu nothing 1073s # Text form 7: @mmmas nothing 1073s ok 54 /gvariant/parser/recursion/maybes 1073s # End of recursion tests 1073s # End of parser tests 1073s # Start of parse tests 1073s # Start of subprocess tests 1073s # End of subprocess tests 1073s # End of parse tests 1073s # Start of normal-checking tests 1073s ok 55 /gvariant/normal-checking/tuples 1073s ok 56 /gvariant/normal-checking/array-offsets 1073s ok 57 /gvariant/normal-checking/array-offsets2 1073s ok 58 /gvariant/normal-checking/tuple-offsets 1073s ok 59 /gvariant/normal-checking/tuple-offsets2 1073s ok 60 /gvariant/normal-checking/tuple-offsets3 1073s ok 61 /gvariant/normal-checking/tuple-offsets4 1073s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1073s ok 62 /gvariant/normal-checking/tuple-offsets5 1073s ok 63 /gvariant/normal-checking/empty-object-path 1073s # Start of array-offsets tests 1073s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1073s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1073s # End of array-offsets tests 1073s # Start of tuple-offsets tests 1073s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1073s # End of tuple-offsets tests 1073s # End of normal-checking tests 1073s # Start of recursion-limits tests 1073s ok 67 /gvariant/recursion-limits/variant-in-variant 1073s ok 68 /gvariant/recursion-limits/array-in-variant 1073s # End of recursion-limits tests 1073s # End of gvariant tests 1073s # Start of gvarianttype tests 1073s ok 69 /gvarianttype/hash 1073s # End of gvarianttype tests 1073s TAP version 14 1073s # random seed: R02S7ff77812bda77f1e2f5c96de397c2868 1073s 1..3 1073s # Start of fileattributematcher tests 1073s ok 1 /fileattributematcher/exact 1073s ok 2 /fileattributematcher/equality 1073s ok 3 /fileattributematcher/subtract 1073s # End of fileattributematcher tests 1073s TAP version 14 1073s # random seed: R02Sd2700819914da56093c0c88230aabaee 1073s 1..3 1073s # Start of error tests 1073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_478TE3/error/from-errno/.dirs/home 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_478TE3/error/from-errno/.dirs/cache 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_478TE3/error/from-errno/.dirs/system-config1:/tmp/test_error_478TE3/error/from-errno/.dirs/system-config2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_478TE3/error/from-errno/.dirs/config 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_478TE3/error/from-errno/.dirs/system-data1:/tmp/test_error_478TE3/error/from-errno/.dirs/system-data2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_478TE3/error/from-errno/.dirs/data 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_478TE3/error/from-errno/.dirs/state 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_478TE3/error/from-errno/.dirs/runtime 1073s ok 1 /error/from-errno 1073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_478TE3/error/from-file-error/.dirs/home 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_478TE3/error/from-file-error/.dirs/cache 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_478TE3/error/from-file-error/.dirs/system-config1:/tmp/test_error_478TE3/error/from-file-error/.dirs/system-config2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_478TE3/error/from-file-error/.dirs/config 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_478TE3/error/from-file-error/.dirs/system-data1:/tmp/test_error_478TE3/error/from-file-error/.dirs/system-data2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_478TE3/error/from-file-error/.dirs/data 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_478TE3/error/from-file-error/.dirs/state 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_478TE3/error/from-file-error/.dirs/runtime 1073s ok 2 /error/from-file-error 1073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_478TE3/error/from-win32-error/.dirs/home 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_478TE3/error/from-win32-error/.dirs/cache 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_478TE3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_478TE3/error/from-win32-error/.dirs/system-config2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_478TE3/error/from-win32-error/.dirs/config 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_478TE3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_478TE3/error/from-win32-error/.dirs/system-data2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_478TE3/error/from-win32-error/.dirs/data 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_478TE3/error/from-win32-error/.dirs/state 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_478TE3/error/from-win32-error/.dirs/runtime 1073s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1073s # End of error tests 1073s TAP version 14 1073s # random seed: R02S3b44366c2a18d24afc9a43e7a21f6a1f 1073s 1..8 1073s # Start of rcbox tests 1073s ok 1 /rcbox/new 1073s # global_point = 0xc7bca48e4710 1073s ok 2 /rcbox/release-full 1073s # global_point_a = 0xc7bca48e4710 1073s # global_point_b = 0xc7bca48e47e0 1073s ok 3 /rcbox/dup 1073s ok 4 /rcbox/alignment 1073s # End of rcbox tests 1073s # Start of atomic-rcbox tests 1073s ok 5 /atomic-rcbox/new 1073s # global_point = 0xc7bca48e47e0 1073s ok 6 /atomic-rcbox/release-full 1073s # global_point_a = 0xc7bca48e47e0 1073s # global_point_b = 0xc7bca48e4710 1073s ok 7 /atomic-rcbox/dup 1073s ok 8 /atomic-rcbox/alignment 1073s # End of atomic-rcbox tests 1073s TAP version 13 1073s ok 1 __main__.TestGobjectQuery.test_froots 1073s # gobject-query: /usr/bin/gobject-query 1073s # tmpdir: /tmp/tmpn8cvin8n 1073s # Running: ['/usr/bin/gobject-query', 'froots'] 1073s # Return code: 0 1073s # Output: 1073s # ├void 1073s # ├GInterface 1073s # │ └GTypePlugin 1073s # ├gchar 1073s # ├guchar 1073s # ├gboolean 1073s # ├gint 1073s # ├guint 1073s # ├glong 1073s # ├gulong 1073s # ├gint64 1073s # ├guint64 1073s # ├GEnum 1073s # ├GFlags 1073s # ├gfloat 1073s # ├gdouble 1073s # ├gchararray 1073s # ├gpointer 1073s # │ └GType 1073s # ├GBoxed 1073s # │ └GValueArray 1073s # ├GParam 1073s # │ ├GParamChar 1073s # │ ├GParamUChar 1073s # │ ├GParamBoolean 1073s # │ ├GParamInt 1073s # │ ├GParamUInt 1073s # │ ├GParamLong 1073s # │ ├GParamULong 1073s # │ ├GParamInt64 1073s # │ ├GParamUInt64 1073s # │ ├GParamUnichar 1073s # │ ├GParamEnum 1073s # │ ├GParamFlags 1073s # │ ├GParamFloat 1073s # │ ├GParamDouble 1073s # │ ├GParamString 1073s # │ ├GParamParam 1073s # │ ├GParamBoxed 1073s # │ ├GParamPointer 1073s # │ ├GParamValueArray 1073s # │ ├GParamObject 1073s # │ ├GParamOverride 1073s # │ ├GParamGType 1073s # │ └GParamVariant 1073s # ├GObject 1073s # └GVariant 1073s # Error: 1073s ok 2 __main__.TestGobjectQuery.test_help 1073s # gobject-query: /usr/bin/gobject-query 1073s # tmpdir: /tmp/tmp0q4hmkep 1073s # Running: ['/usr/bin/gobject-query', '--help'] 1073s # Return code: 0 1073s # Output: 1073s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1073s # -r specify root type 1073s # -n don't descend type tree 1073s # -h show help 1073s # -b specify indent string 1073s # -i specify incremental indent string 1073s # -s specify line spacing 1073s # qualifiers: 1073s # froots iterate over fundamental roots 1073s # tree print type tree 1073s # Error: 1073s ok 3 __main__.TestGobjectQuery.test_tree 1073s # gobject-query: /usr/bin/gobject-query 1073s # tmpdir: /tmp/tmpsejfo3my 1073s # Running: ['/usr/bin/gobject-query', 'tree'] 1073s # Return code: 0 1073s # Output: 1073s # GObject 1073s # Error: 1073s ok 4 __main__.TestGobjectQuery.test_version 1073s # gobject-query: /usr/bin/gobject-query 1073s # tmpdir: /tmp/tmpmbdt4rli 1073s # Running: ['/usr/bin/gobject-query', '--version'] 1073s # Return code: 0 1073s # Output: 1073s # 2.86.0 1073s # Error: 1073s 1..4 1073s ok - glib/gobject-query.py.test 1073s # Running test: glib/contexts.test 1073s TAP version 14 1073s # random seed: R02S22d17d068641dfb7feab9d1cc596ae5a 1073s 1..5 1073s # Start of gio tests 1073s # Start of contexts tests 1073s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1073s ok 1 /gio/contexts/thread-independence 1073s ok 2 /gio/contexts/context-independence 1073s # Start of context-specific tests 1073s ok 3 /gio/contexts/context-specific/identity 1073s ok 4 /gio/contexts/context-specific/emit 1073s ok 5 /gio/contexts/context-specific/emit-and-unref 1073s # End of context-specific tests 1073s # End of contexts tests 1073s # End of gio tests 1073s ok - glib/contexts.test 1073s # Running test: glib/testfilemonitor.test 1073s ok - glib/testfilemonitor.test 1073s TAP version 14 1073s # random seed: R02S5da679c229c84df16c2aed67e4ec4bcf 1073s 1..8 1073s # Start of monitor tests 1073s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1073s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1073s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1073s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s # Start of file tests 1073s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1073s # End of file tests 1073s # End of monitor tests 1073s # Running test: glib/macros-c-11.test 1073s TAP version 14 1073s # random seed: R02Seb4c7ee0ab9ed1400209551fb843dbe4 1073s 1..4 1073s # Start of C tests 1073s ok 1 /C/standard-11 1073s # End of C tests 1073s # Start of alignof tests 1073s ok 2 /alignof/fallback 1073s # End of alignof tests 1073s # Start of assert tests 1073s ok 3 /assert/static 1073s # End of assert tests 1073s # Start of struct tests 1073s ok 4 /struct/sizeof_member 1073s # End of struct tests 1073s ok - glib/macros-c-11.test 1073s # Running test: glib/task.test 1073s TAP version 14 1073s # random seed: R02S13f402ae2ab18c3cca04086ad6c434a1 1073s 1..36 1073s # Start of gtask tests 1073s ok 1 /gtask/basic 1073s ok 2 /gtask/error 1073s ok 3 /gtask/error-literal 1073s ok 4 /gtask/error-literal-from-variable 1073s ok 5 /gtask/return-from-same-iteration 1073s ok 6 /gtask/return-from-toplevel 1073s ok 7 /gtask/return-from-anon-thread 1073s ok 8 /gtask/return-from-wrong-thread 1073s ok 9 /gtask/no-callback 1073s ok 10 /gtask/report-error 1073s ok 11 /gtask/priority 1073s ok 12 /gtask/name 1073s ok 13 /gtask/static-name 1073s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1074s ok 14 /gtask/asynchronous-cancellation 1074s ok 15 /gtask/check-cancellable 1074s ok 16 /gtask/return-if-cancelled 1074s ok 17 /gtask/run-in-thread 1074s ok 18 /gtask/run-in-thread-sync 1074s ok 19 /gtask/run-in-thread-priority 1074s ok 20 /gtask/run-in-thread-nested 1074s ok 21 /gtask/run-in-thread-overflow 1074s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1074s # GLib-GIO-DEBUG: GTask 0xbefa24a2ac20 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1074s # GLib-GIO-DEBUG: GTask 0xbefa24a2a4b0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1074s ok 22 /gtask/return-on-cancel 1074s # GLib-GIO-DEBUG: GTask 0xbefa24a2a690 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1074s # GLib-GIO-DEBUG: GTask 0xbefa24a2a0b0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1074s ok 23 /gtask/return-on-cancel-sync 1074s ok 24 /gtask/return-on-cancel-atomic 1074s ok 25 /gtask/return-pointer 1074s ok 26 /gtask/return-value 1074s ok 27 /gtask/return-prefixed-error 1074s ok 28 /gtask/object-keepalive 1074s ok 29 /gtask/legacy-error 1074s ok 30 /gtask/finalize-without-return 1074s # Start of name tests 1074s ok 31 /gtask/name/macro-wrapper 1074s # End of name tests 1074s # Start of return tests 1074s ok 32 /gtask/return/error-first 1074s ok 33 /gtask/return/value-first 1074s # Start of in-idle tests 1074s ok 34 /gtask/return/in-idle/error-first 1074s ok 35 /gtask/return/in-idle/value-first 1074s # End of in-idle tests 1074s # End of return tests 1074s # Start of attach-source tests 1074s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1074s ok 36 /gtask/attach-source/set-name 1074s # End of attach-source tests 1074s # End of gtask tests 1074s ok - glib/task.test 1074s # Running test: glib/socket.test 1074s TAP version 14 1074s # random seed: R02S2eafd15030c563230d0b9da392b0876e 1074s 1..30 1074s # Start of socket tests 1075s ok 1 /socket/ipv4_sync 1075s # slow test /socket/ipv4_sync executed in 1.00 secs 1076s ok 2 /socket/ipv4_async 1076s # slow test /socket/ipv4_async executed in 1.00 secs 1076s ok 3 /socket/ipv6_sync 1076s ok 4 /socket/ipv6_async 1076s ok 5 /socket/ipv6_v4mapped 1077s ok 6 /socket/close_graceful 1077s # slow test /socket/close_graceful executed in 1.00 secs 1077s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1077s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1077s ok 8 /socket/fd_reuse 1077s ok 9 /socket/address 1077s ok 10 /socket/unix-from-fd 1077s ok 11 /socket/unix-connection 1077s ok 12 /socket/unix-connection-ancillary-data 1077s ok 13 /socket/source-postmortem 1077s ok 14 /socket/read_write 1077s ok 15 /socket/read_writev 1078s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1078s ok 16 /socket/receive_bytes 1078s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1078s ok 17 /socket/receive_bytes_from 1078s # Start of ipv4_sync tests 1078s ok 18 /socket/ipv4_sync/datagram 1078s # Start of datagram tests 1078s # Executing: glib/socket.test 1079s ok 19 /socket/ipv4_sync/datagram/timeouts 1079s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1079s # End of datagram tests 1079s # End of ipv4_sync tests 1079s # Start of ipv6_sync tests 1079s ok 20 /socket/ipv6_sync/datagram 1079s # Start of datagram tests 1080s ok 21 /socket/ipv6_sync/datagram/timeouts 1080s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1080s # End of datagram tests 1080s # End of ipv6_sync tests 1080s # Start of reuse tests 1080s ok 22 /socket/reuse/tcp 1080s ok 23 /socket/reuse/udp 1080s # End of reuse tests 1080s # Start of get_available tests 1081s ok 24 /socket/get_available/datagram 1081s ok - glib/socket.test 1081s # Running test: glib/thumbnail-verification.test 1081s ok - glib/thumbnail-verification.test 1081s # Running test: glib/gthash.test 1081s ok - glib/gthash.test 1081s # Running test: glib/option-argv0.test 1081s ok - glib/option-argv0.test 1081s # Running test: glib/642026-ec.test 1081s ok - glib/642026-ec.test 1081s # Running test: glib/hostutils.test 1081s ok 25 /socket/get_available/stream 1081s # End of get_available tests 1081s # Start of credentials tests 1081s # Supported on this OS: GCredentials:linux-ucred:pid=0 1081s ok 26 /socket/credentials/tcp_client 1081s # Supported on this OS: GCredentials:linux-ucred:pid=0 1081s ok 27 /socket/credentials/tcp_server 1081s # Supported on this OS: GCredentials:linux-ucred:pid=12188,uid=1000,gid=1000 1081s ok 28 /socket/credentials/unix_socketpair 1081s # End of credentials tests 1081s # Start of accept tests 1081s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1081s ok 29 /socket/accept/cancelled 1081s # End of accept tests 1081s # Start of connect tests 1081s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1081s ok 30 /socket/connect/cancelled 1081s # End of connect tests 1081s # End of socket tests 1081s TAP version 14 1081s # random seed: R02S9b0419cf02b90fa9e30a6aa86689bc6e 1081s 1..1 1081s # Start of png-thumbs tests 1081s ok 1 /png-thumbs/validity 1081s # End of png-thumbs tests 1081s TAP version 14 1081s # random seed: R02Sea8f50955ae48762678be8d2f6351596 1081s 1..1 1081s # Start of gthash tests 1081s ok 1 /gthash/build-retrieve 1081s # End of gthash tests 1081s TAP version 14 1081s # random seed: R02Scb2786c459e8724d1533be08060e5492 1081s 1..1 1081s # Start of option tests 1081s ok 1 /option/argv0 1081s # End of option tests 1081s TAP version 14 1081s # random seed: R02S0cd62ff892bc5d6804f8bd38af8de0ab 1081s 1..1 1081s # Start of glib tests 1081s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1081s ok 1 /glib/642026 1081s # End of glib tests 1081s TAP version 14 1081s # random seed: R02S4a951643922f3c8e9012af11f04ddb42 1081s 1..3 1081s # Start of hostutils tests 1081s ok 1 /hostutils/to_ascii 1081s ok 2 /hostutils/to_unicode 1081s ok 3 /hostutils/is_ip_addr 1081s # End of hostutils tests 1081s TAP version 14 1081s # random seed: R02Se99dd92363f70c4b67b05fb063bc7fb4 1081s 1..1 1081s # Start of properties tests 1081s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1081s ok 1 /properties/notify-in-init2 1081s # End of properties tests 1081s TAP version 14 1081s # random seed: R02Sa808f624d150b504ad65e7e25fc05ba1 1081s 1..47 1081s # Start of maincontext tests 1081s ok 1 /maincontext/basic 1081s # Add same-priority sources: 19 1081s # Find each source: 4 1081s # Remove in random order: 43 1081s ok 2 /maincontext/nsources_same_priority 1081s # Add different-priority sources: 23 1081s # Find each source: 4 1081s # Remove in random order: 47 1081s ok 3 /maincontext/nsources_different_priority 1081s # Add sources from threads: 163 1081s # Remove sources from threads: 52 1081s ok 4 /maincontext/nsources_threadpool 1081s ok 5 /maincontext/source_finalization 1081s # /maincontext/idle-once summary: Test g_idle_add_once() works 1081s ok 6 /maincontext/idle-once 1081s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1081s ok 7 /maincontext/timeout-once 1081s # /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. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1081s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1081s # Start of source_finalization_from_source tests 1081s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 9 /maincontext/source_finalization_from_source/0 1081s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 10 /maincontext/source_finalization_from_source/1 1081s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 11 /maincontext/source_finalization_from_source/2 1081s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 12 /maincontext/source_finalization_from_source/3 1081s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 13 /maincontext/source_finalization_from_source/4 1081s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 14 /maincontext/source_finalization_from_source/5 1081s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 15 /maincontext/source_finalization_from_source/6 1081s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 16 /maincontext/source_finalization_from_source/7 1081s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 17 /maincontext/source_finalization_from_source/8 1081s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1081s ok 18 /maincontext/source_finalization_from_source/9 1081s # End of source_finalization_from_source tests 1081s # Start of source_finalization_from_dispatch tests 1081s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1081s ok 19 /maincontext/source_finalization_from_dispatch/0 1081s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1081s ok 20 /maincontext/source_finalization_from_dispatch/1 1081s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1081s ok 21 /maincontext/source_finalization_from_dispatch/2 1081s # End of source_finalization_from_dispatch tests 1081s # End of maincontext tests 1081s # Start of mainloop tests 1081s ok 22 /mainloop/basic 1081s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1081s ok 24 /mainloop/priorities 1081s ok - glib/hostutils.test 1081s # Running test: glib/notify-init2.test 1081s ok - glib/notify-init2.test 1081s # Running test: glib/mainloop.test 1081s ok 25 /mainloop/invoke 1081s # slow test /mainloop/invoke executed in 0.50 secs 1082s ok 26 /mainloop/child_sources 1082s # slow test /mainloop/child_sources executed in 1.19 secs 1083s # Executing: glib/mainloop.test 1084s ok 27 /mainloop/recursive_child_sources 1084s # slow test /mainloop/recursive_child_sources executed in 2.17 secs 1084s ok 28 /mainloop/recursive_loop_child_sources 1084s ok 29 /mainloop/swapping_child_sources 1084s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1084s ok 30 /mainloop/blocked_child_sources 1085s ok 31 /mainloop/source_time 1085s # slow test /mainloop/source_time executed in 1.00 secs 1085s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1085s ok 32 /mainloop/overflow 1086s ok 33 /mainloop/ready-time 1086s # slow test /mainloop/ready-time executed in 0.50 secs 1086s ok 34 /mainloop/wakeup 1086s ok 35 /mainloop/remove-invalid 1086s ok 36 /mainloop/unref-while-pending 1086s ok 37 /mainloop/unix-fd 1086s # slow test /mainloop/unix-fd executed in 0.60 secs 1086s ok 38 /mainloop/unix-fd-source 1086s ok 39 /mainloop/source-unix-fd-api 1087s ok 40 /mainloop/wait 1087s ok 41 /mainloop/unix-file-poll 1087s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1087s ok 42 /mainloop/unix-fd-priority 1087s ok 43 /mainloop/nfds 1087s ok 44 /mainloop/steal-fd 1088s # Executing: glib/mainloop.test 1088s ok 45 /mainloop/simultaneous-source-context-destruction 1088s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.43 secs 1088s # Start of ownerless-polling tests 1088s ok 46 /mainloop/ownerless-polling/attach-first 1088s ok 47 /mainloop/ownerless-polling/pop-first 1088s # End of ownerless-polling tests 1088s # End of mainloop tests 1088s ok - glib/mainloop.test 1088s # Running test: glib/mkenums.py.test 1088s TAP version 13 1088s ok 1 __main__.TestMkenums.test_available_in 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmppnpadsl8 1088s # rspfile: False 1088s # /tmp/tmppnpadsl8/tmpqxnu4mvg.h: 1088s # typedef enum { 1088s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1088s # } GDBusServerFlags; 1088s # 1088s # /tmp/tmppnpadsl8/tmpboet_0hl.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmppnpadsl8/tmpboet_0hl.template', '/tmp/tmppnpadsl8/tmpqxnu4mvg.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmppnpadsl8/tmpqxnu4mvg.h 1088s # basename: tmpqxnu4mvg.h 1088s # enumeration-production 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-header 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-production 1088s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1088s # valuenick: user 1088s # valuenum: 4 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-tail 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmppqecqh1w 1088s # rspfile: False 1088s # /tmp/tmppqecqh1w/tmpzayrz5lq.h: 1088s # typedef enum { 1088s # ENUM_VALUE_WITH_COMMA = ',', 1088s # } TestCommaEnum; 1088s # 1088s # /tmp/tmppqecqh1w/tmpb834vzcj.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmppqecqh1w/tmpb834vzcj.template', '/tmp/tmppqecqh1w/tmpzayrz5lq.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmppqecqh1w/tmpzayrz5lq.h 1088s # basename: tmpzayrz5lq.h 1088s # enumeration-production 1088s # EnumName: TestCommaEnum 1088s # enum_name: test_comma_enum 1088s # ENUMNAME: TEST_COMMA_ENUM 1088s # ENUMSHORT: COMMA_ENUM 1088s # ENUMPREFIX: TEST 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-header 1088s # EnumName: TestCommaEnum 1088s # enum_name: test_comma_enum 1088s # ENUMNAME: TEST_COMMA_ENUM 1088s # ENUMSHORT: COMMA_ENUM 1088s # ENUMPREFIX: TEST 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-production 1088s # VALUENAME: ENUM_VALUE_WITH_COMMA 1088s # valuenick: comma 1088s # valuenum: 44 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-tail 1088s # EnumName: TestCommaEnum 1088s # enum_name: test_comma_enum 1088s # ENUMNAME: TEST_COMMA_ENUM 1088s # ENUMSHORT: COMMA_ENUM 1088s # ENUMPREFIX: TEST 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 3 __main__.TestMkenums.test_deprecated_in 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmp5fezrxmp 1088s # rspfile: False 1088s # /tmp/tmp5fezrxmp/tmpqgkjohl8.h: 1088s # typedef enum { 1088s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1088s # } GDBusServerFlags; 1088s # 1088s # /tmp/tmp5fezrxmp/tmpx9idwruk.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5fezrxmp/tmpx9idwruk.template', '/tmp/tmp5fezrxmp/tmpqgkjohl8.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmp5fezrxmp/tmpqgkjohl8.h 1088s # basename: tmpqgkjohl8.h 1088s # enumeration-production 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-header 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-production 1088s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1088s # valuenick: user 1088s # valuenum: 4 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-tail 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 4 __main__.TestMkenums.test_deprecated_in_for 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmptw0zps0r 1088s # rspfile: False 1088s # /tmp/tmptw0zps0r/tmpjf481_bv.h: 1088s # typedef enum { 1088s # 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) 1088s # } GDBusServerFlags; 1088s # 1088s # /tmp/tmptw0zps0r/tmpdv_vbmc_.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmptw0zps0r/tmpdv_vbmc_.template', '/tmp/tmptw0zps0r/tmpjf481_bv.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmptw0zps0r/tmpjf481_bv.h 1088s # basename: tmpjf481_bv.h 1088s # enumeration-production 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-header 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-production 1088s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1088s # valuenick: user 1088s # valuenum: 4 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # value-tail 1088s # EnumName: GDBusServerFlags 1088s # enum_name: g_dbus_server_flags 1088s # ENUMNAME: G_DBUS_SERVER_FLAGS 1088s # ENUMSHORT: DBUS_SERVER_FLAGS 1088s # ENUMPREFIX: G 1088s # enumsince: 1088s # type: flags 1088s # Type: Flags 1088s # TYPE: FLAGS 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 5 __main__.TestMkenums.test_empty_header 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmpmf6yq_ik 1088s # rspfile: False 1088s # /tmp/tmpmf6yq_ik/tmpwr_7210y.h: 1088s # /tmp/tmpmf6yq_ik/tmpnf68l5ih.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmf6yq_ik/tmpnf68l5ih.template', '/tmp/tmpmf6yq_ik/tmpwr_7210y.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 6 __main__.TestMkenums.test_empty_template 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmpaz553cuo 1088s # rspfile: False 1088s # /tmp/tmpaz553cuo/tmpwwevx4k_.template: 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpaz553cuo/tmpwwevx4k_.template'] 1088s # Return code: 0 1088s # Output: 1088s # /* 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. */ 1088s # 1088s # 1088s # /* Generated data ends here */ 1088s # Error: 1088s ok 7 __main__.TestMkenums.test_enum_name 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmpio3vrb6t 1088s # rspfile: False 1088s # /tmp/tmpio3vrb6t/tmpx9hx05q9.h: 1088s # typedef enum _SomeEnumIdentifier { 1088s # ENUM_VALUE 1088s # } SomeEnumIdentifier; 1088s # 1088s # /tmp/tmpio3vrb6t/tmpwzo0qis1.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpio3vrb6t/tmpwzo0qis1.template', '/tmp/tmpio3vrb6t/tmpx9hx05q9.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmpio3vrb6t/tmpx9hx05q9.h 1088s # basename: tmpx9hx05q9.h 1088s # enumeration-production 1088s # EnumName: SomeEnumIdentifier 1088s # enum_name: some_enum_identifier 1088s # ENUMNAME: SOME_ENUM_IDENTIFIER 1088s # ENUMSHORT: ENUM_IDENTIFIER 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-header 1088s # EnumName: SomeEnumIdentifier 1088s # enum_name: some_enum_identifier 1088s # ENUMNAME: SOME_ENUM_IDENTIFIER 1088s # ENUMSHORT: ENUM_IDENTIFIER 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-production 1088s # VALUENAME: ENUM_VALUE 1088s # valuenick: value 1088s # valuenum: 0 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-tail 1088s # EnumName: SomeEnumIdentifier 1088s # enum_name: some_enum_identifier 1088s # ENUMNAME: SOME_ENUM_IDENTIFIER 1088s # ENUMSHORT: ENUM_IDENTIFIER 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s ok 8 __main__.TestMkenums.test_enum_private_public 1088s # glib-mkenums: /usr/bin/glib-mkenums 1088s # tmpdir: /tmp/tmpph4muo38 1088s # rspfile: False 1088s # /tmp/tmpph4muo38/tmp74oxd9hu.h: 1088s # typedef enum { 1088s # ENUM_VALUE_PUBLIC1, 1088s # /*< private >*/ 1088s # ENUM_VALUE_PRIVATE, 1088s # } SomeEnumA 1088s # 1088s # /tmp/tmpph4muo38/tmpjhe1p8_j.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpph4muo38/tmpjhe1p8_j.template', '/tmp/tmpph4muo38/tmp74oxd9hu.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmpph4muo38/tmp74oxd9hu.h 1088s # basename: tmp74oxd9hu.h 1088s # enumeration-production 1088s # EnumName: SomeEnumA 1088s # enum_name: some_enum_a 1088s # ENUMNAME: SOME_ENUM_A 1088s # ENUMSHORT: ENUM_A 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-header 1088s # EnumName: SomeEnumA 1088s # enum_name: some_enum_a 1088s # ENUMNAME: SOME_ENUM_A 1088s # ENUMSHORT: ENUM_A 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-production 1088s # VALUENAME: ENUM_VALUE_PUBLIC1 1088s # valuenick: public1 1088s # valuenum: 0 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-tail 1088s # EnumName: SomeEnumA 1088s # enum_name: some_enum_a 1088s # ENUMNAME: SOME_ENUM_A 1088s # ENUMSHORT: ENUM_A 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1088s # 1088s # /tmp/tmpph4muo38/tmpj0g03uff.h: 1088s # typedef enum { 1088s # /*< private >*/ 1088s # ENUM_VALUE_PRIVATE, 1088s # /*< public >*/ 1088s # ENUM_VALUE_PUBLIC2, 1088s # } SomeEnumB; 1088s # 1088s # /tmp/tmpph4muo38/tmph1np018r.template: 1088s # /*** BEGIN file-header ***/ 1088s # file-header 1088s # /*** END file-header ***/ 1088s # 1088s # /*** BEGIN file-production ***/ 1088s # file-production 1088s # filename: @filename@ 1088s # basename: @basename@ 1088s # /*** END file-production ***/ 1088s # 1088s # /*** BEGIN enumeration-production ***/ 1088s # enumeration-production 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END enumeration-production ***/ 1088s # 1088s # /*** BEGIN value-header ***/ 1088s # value-header 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-header ***/ 1088s # 1088s # /*** BEGIN value-production ***/ 1088s # value-production 1088s # VALUENAME: @VALUENAME@ 1088s # valuenick: @valuenick@ 1088s # valuenum: @valuenum@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-production ***/ 1088s # 1088s # /*** BEGIN value-tail ***/ 1088s # value-tail 1088s # EnumName: @EnumName@ 1088s # enum_name: @enum_name@ 1088s # ENUMNAME: @ENUMNAME@ 1088s # ENUMSHORT: @ENUMSHORT@ 1088s # ENUMPREFIX: @ENUMPREFIX@ 1088s # enumsince: @enumsince@ 1088s # type: @type@ 1088s # Type: @Type@ 1088s # TYPE: @TYPE@ 1088s # /*** END value-tail ***/ 1088s # 1088s # /*** BEGIN comment ***/ 1088s # comment 1088s # comment: @comment@ 1088s # /*** END comment ***/ 1088s # 1088s # /*** BEGIN file-tail ***/ 1088s # file-tail 1088s # /*** END file-tail ***/ 1088s # 1088s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpph4muo38/tmph1np018r.template', '/tmp/tmpph4muo38/tmpj0g03uff.h'] 1088s # Return code: 0 1088s # Output: 1088s # comment 1088s # 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. 1088s # 1088s # 1088s # file-header 1088s # file-production 1088s # filename: /tmp/tmpph4muo38/tmpj0g03uff.h 1088s # basename: tmpj0g03uff.h 1088s # enumeration-production 1088s # EnumName: SomeEnumB 1088s # enum_name: some_enum_b 1088s # ENUMNAME: SOME_ENUM_B 1088s # ENUMSHORT: ENUM_B 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-header 1088s # EnumName: SomeEnumB 1088s # enum_name: some_enum_b 1088s # ENUMNAME: SOME_ENUM_B 1088s # ENUMSHORT: ENUM_B 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-production 1088s # VALUENAME: ENUM_VALUE_PUBLIC2 1088s # valuenick: public2 1088s # valuenum: 1 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # value-tail 1088s # EnumName: SomeEnumB 1088s # enum_name: some_enum_b 1088s # ENUMNAME: SOME_ENUM_B 1088s # ENUMSHORT: ENUM_B 1088s # ENUMPREFIX: SOME 1088s # enumsince: 1088s # type: enum 1088s # Type: Enum 1088s # TYPE: ENUM 1088s # file-tail 1088s # 1088s # comment 1088s # comment: Generated data ends here 1088s # Error: 1089s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpr1syll4o 1089s # rspfile: False 1089s # /tmp/tmpr1syll4o/tmpmrc9xfxf.h: 1089s # typedef enum { 1089s # /*< private >*/ 1089s # ENUM_VALUE_PRIVATE = 5, 1089s # /*< public >*/ 1089s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1089s # } TestSymbolicEnum; 1089s # 1089s # /tmp/tmpr1syll4o/tmp9uvloqcg.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpr1syll4o/tmp9uvloqcg.template', '/tmp/tmpr1syll4o/tmpmrc9xfxf.h'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpr1syll4o/tmpmrc9xfxf.h 1089s # basename: tmpmrc9xfxf.h 1089s # enumeration-production 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE_PUBLIC 1089s # valuenick: public 1089s # valuenum: 7 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmp6d611vvm 1089s # rspfile: False 1089s # /tmp/tmp6d611vvm/tmps8dbrdbt.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-tail ***/ 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp6d611vvm/tmps8dbrdbt.template'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # file-tail 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s # WARNING: @filename@ used in file-header section. 1089s # WARNING: @basename@ used in file-header section. 1089s # WARNING: @filename@ used in file-tail section. 1089s # WARNING: @basename@ used in file-tail section. 1089s ok 11 __main__.TestMkenums.test_help 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpdl68nqzr 1089s # rspfile: False 1089s # Running: ['/usr/bin/glib-mkenums', '--help'] 1089s # Return code: 0 1089s # Output: 1089s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1089s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1089s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1089s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1089s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1089s # [--output OUTPUT] [--version] 1089s # [args ...] 1089s # 1089s # positional arguments: 1089s # args One or more input files, or a single argument 1089s # @rspfile_path pointing to a file that contains the 1089s # actual arguments 1089s # 1089s # options: 1089s # -h, --help show this help message and exit 1089s # --identifier-prefix IDPREFIX 1089s # Identifier prefix 1089s # --symbol-prefix SYMPREFIX 1089s # Symbol prefix 1089s # --fhead FHEAD Output file header 1089s # --ftail FTAIL Output file footer 1089s # --fprod FPROD Put out TEXT every time a new input file is being 1089s # processed. 1089s # --eprod EPROD Per enum text, produced prior to value iterations 1089s # --vhead VHEAD Value header, produced before iterating over enum 1089s # values 1089s # --vprod VPROD Value text, produced for each enum value. 1089s # --vtail VTAIL Value tail, produced after iterating over enum values 1089s # --comments COMMENT_TMPL 1089s # Comment structure 1089s # --template TEMPLATE Template file 1089s # --output OUTPUT 1089s # --version, -v Print version information 1089s # 1089s # Production text substitutions: 1089s # @EnumName@ PrefixTheXEnum 1089s # @enum_name@ prefix_the_xenum 1089s # @ENUMNAME@ PREFIX_THE_XENUM 1089s # @ENUMSHORT@ THE_XENUM 1089s # @ENUMPREFIX@ PREFIX 1089s # @enumsince@ the user-provided since value given 1089s # @VALUENAME@ PREFIX_THE_XVALUE 1089s # @valuenick@ the-xvalue 1089s # @valuenum@ the integer value (limited support, Since: 2.26) 1089s # @type@ either enum or flags 1089s # @Type@ either Enum or Flags 1089s # @TYPE@ either ENUM or FLAGS 1089s # @filename@ name of current input file 1089s # @basename@ base name of the current input file (Since: 2.22) 1089s # Error: 1089s ok 12 __main__.TestMkenums.test_no_args 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmplevla73l 1089s # rspfile: False 1089s # Running: ['/usr/bin/glib-mkenums'] 1089s # Return code: 0 1089s # Output: 1089s # /* 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. */ 1089s # 1089s # 1089s # /* Generated data ends here */ 1089s # Error: 1089s ok 13 __main__.TestMkenums.test_no_headers 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpi1fl3_5x 1089s # rspfile: False 1089s # /tmp/tmpi1fl3_5x/tmpl7por07o.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpi1fl3_5x/tmpl7por07o.template'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 14 __main__.TestMkenums.test_no_nick 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpjng2qt51 1089s # rspfile: False 1089s # /tmp/tmpjng2qt51/tmp4k9yc3kq.h: 1089s # typedef enum { 1089s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1089s # } GeglSamplerType; 1089s # 1089s # /tmp/tmpjng2qt51/tmpqqgiiw55.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjng2qt51/tmpqqgiiw55.template', '/tmp/tmpjng2qt51/tmp4k9yc3kq.h'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpjng2qt51/tmp4k9yc3kq.h 1089s # basename: tmp4k9yc3kq.h 1089s # enumeration-production 1089s # EnumName: GeglSamplerType 1089s # enum_name: gegl_sampler_type 1089s # ENUMNAME: GEGL_SAMPLER_TYPE 1089s # ENUMSHORT: SAMPLER_TYPE 1089s # ENUMPREFIX: GEGL 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: GeglSamplerType 1089s # enum_name: gegl_sampler_type 1089s # ENUMNAME: GEGL_SAMPLER_TYPE 1089s # ENUMSHORT: SAMPLER_TYPE 1089s # ENUMPREFIX: GEGL 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: GEGL_SAMPLER_NEAREST 1089s # valuenick: nearest 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: GeglSamplerType 1089s # enum_name: gegl_sampler_type 1089s # ENUMNAME: GEGL_SAMPLER_TYPE 1089s # ENUMSHORT: SAMPLER_TYPE 1089s # ENUMPREFIX: GEGL 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpr7nigbr9 1089s # rspfile: False 1089s # /tmp/tmpr7nigbr9/tmp8sms8aie.h: 1089s # /* Copyright © La Peña */ 1089s # typedef enum { 1089s # ENUM_VALUE 1089s # } SomeEnumIdentifier; 1089s # 1089s # /tmp/tmpr7nigbr9/tmpj9vbv28a.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpr7nigbr9/tmpj9vbv28a.template', '/tmp/tmpr7nigbr9/tmp8sms8aie.h'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpr7nigbr9/tmp8sms8aie.h 1089s # basename: tmp8sms8aie.h 1089s # enumeration-production 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE 1089s # valuenick: value 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1089s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1089s ok 16 __main__.TestMkenums.test_reproducible 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmp8aqi5f49 1089s # rspfile: False 1089s # /tmp/tmp8aqi5f49/tmpgil9xv2d.template: template 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8aqi5f49/tmpgil9xv2d.template', '/tmp/tmp8aqi5f49/tmplat30su41.h', '/tmp/tmp8aqi5f49/tmp46eofs1b2.h'] 1089s # Return code: 0 1089s # Output: 1089s # /* 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. */ 1089s # 1089s # 1089s # /* Generated data ends here */ 1089s # Error: 1089s # 1089s # /tmp/tmp8aqi5f49/tmpuy9f4er2.template: template 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8aqi5f49/tmpuy9f4er2.template', '/tmp/tmp8aqi5f49/tmp46eofs1b2.h', '/tmp/tmp8aqi5f49/tmplat30su41.h'] 1089s # Return code: 0 1089s # Output: 1089s # /* 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. */ 1089s # 1089s # 1089s # /* Generated data ends here */ 1089s # Error: 1089s ok 17 __main__.TestMkenums.test_since 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpd2ua3d05 1089s # rspfile: False 1089s # /tmp/tmpd2ua3d05/tmpnwswi3qt.h: 1089s # typedef enum { /*< since=1.0 >*/ 1089s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1089s # } QmiWmsMessageProtocol; 1089s # 1089s # /tmp/tmpd2ua3d05/tmpcq40hqfp.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpd2ua3d05/tmpcq40hqfp.template', '/tmp/tmpd2ua3d05/tmpnwswi3qt.h'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpd2ua3d05/tmpnwswi3qt.h 1089s # basename: tmpnwswi3qt.h 1089s # enumeration-production 1089s # EnumName: QmiWmsMessageProtocol 1089s # enum_name: qmi_wms_message_protocol 1089s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1089s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1089s # ENUMPREFIX: QMI 1089s # enumsince: 1.0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: QmiWmsMessageProtocol 1089s # enum_name: qmi_wms_message_protocol 1089s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1089s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1089s # ENUMPREFIX: QMI 1089s # enumsince: 1.0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1089s # valuenick: cdma 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: QmiWmsMessageProtocol 1089s # enum_name: qmi_wms_message_protocol 1089s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1089s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1089s # ENUMPREFIX: QMI 1089s # enumsince: 1.0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 18 __main__.TestMkenums.test_with_double_quotes 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpxhdyix0f 1089s # rspfile: False 1089s # /tmp/tmpxhdyix0f/tmp70p56qvi.h: 1089s # typedef enum { 1089s # FOO_VALUE /*< nick="eek, a comma" >*/ 1089s # } Foo; 1089s # 1089s # /tmp/tmpxhdyix0f/tmp9d1wtzdd.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpxhdyix0f/tmp9d1wtzdd.template', '/tmp/tmpxhdyix0f/tmp70p56qvi.h'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpxhdyix0f/tmp70p56qvi.h 1089s # basename: tmp70p56qvi.h 1089s # enumeration-production 1089s # EnumName: Foo 1089s # enum_name: foo_ 1089s # ENUMNAME: FOO_ 1089s # ENUMSHORT: 1089s # ENUMPREFIX: FOO 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: Foo 1089s # enum_name: foo_ 1089s # ENUMNAME: FOO_ 1089s # ENUMSHORT: 1089s # ENUMPREFIX: FOO 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: FOO_VALUE 1089s # valuenick: eek, a comma 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: Foo 1089s # enum_name: foo_ 1089s # ENUMNAME: FOO_ 1089s # ENUMSHORT: 1089s # ENUMPREFIX: FOO 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 19 __main__.TestRspMkenums.test_available_in 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpj4gx7h46 1089s # rspfile: True 1089s # /tmp/tmpj4gx7h46/tmpiy9yr63k.h: 1089s # typedef enum { 1089s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1089s # } GDBusServerFlags; 1089s # 1089s # /tmp/tmpj4gx7h46/tmpeuxyispu.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpj4gx7h46/tmpeuxyispu.template /tmp/tmpj4gx7h46/tmpiy9yr63k.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpj4gx7h46/tmpwm9jypoh'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpj4gx7h46/tmpiy9yr63k.h 1089s # basename: tmpiy9yr63k.h 1089s # enumeration-production 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-header 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-production 1089s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1089s # valuenick: user 1089s # valuenum: 4 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-tail 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpr_shd1bl 1089s # rspfile: True 1089s # /tmp/tmpr_shd1bl/tmpqxvkrlmc.h: 1089s # typedef enum { 1089s # ENUM_VALUE_WITH_COMMA = ',', 1089s # } TestCommaEnum; 1089s # 1089s # /tmp/tmpr_shd1bl/tmpho5lvx95.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpr_shd1bl/tmpho5lvx95.template /tmp/tmpr_shd1bl/tmpqxvkrlmc.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpr_shd1bl/tmpovfx08yx'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpr_shd1bl/tmpqxvkrlmc.h 1089s # basename: tmpqxvkrlmc.h 1089s # enumeration-production 1089s # EnumName: TestCommaEnum 1089s # enum_name: test_comma_enum 1089s # ENUMNAME: TEST_COMMA_ENUM 1089s # ENUMSHORT: COMMA_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: TestCommaEnum 1089s # enum_name: test_comma_enum 1089s # ENUMNAME: TEST_COMMA_ENUM 1089s # ENUMSHORT: COMMA_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE_WITH_COMMA 1089s # valuenick: comma 1089s # valuenum: 44 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: TestCommaEnum 1089s # enum_name: test_comma_enum 1089s # ENUMNAME: TEST_COMMA_ENUM 1089s # ENUMSHORT: COMMA_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 21 __main__.TestRspMkenums.test_deprecated_in 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpf685m36h 1089s # rspfile: True 1089s # /tmp/tmpf685m36h/tmpebftvt29.h: 1089s # typedef enum { 1089s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1089s # } GDBusServerFlags; 1089s # 1089s # /tmp/tmpf685m36h/tmpdua4b0q1.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpf685m36h/tmpdua4b0q1.template /tmp/tmpf685m36h/tmpebftvt29.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpf685m36h/tmp6u2qzbpd'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpf685m36h/tmpebftvt29.h 1089s # basename: tmpebftvt29.h 1089s # enumeration-production 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-header 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-production 1089s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1089s # valuenick: user 1089s # valuenum: 4 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-tail 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpvxzrfxyr 1089s # rspfile: True 1089s # /tmp/tmpvxzrfxyr/tmp3m8cv0tn.h: 1089s # typedef enum { 1089s # 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) 1089s # } GDBusServerFlags; 1089s # 1089s # /tmp/tmpvxzrfxyr/tmp76z13qh4.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpvxzrfxyr/tmp76z13qh4.template /tmp/tmpvxzrfxyr/tmp3m8cv0tn.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvxzrfxyr/tmpc41vzvcp'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpvxzrfxyr/tmp3m8cv0tn.h 1089s # basename: tmp3m8cv0tn.h 1089s # enumeration-production 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-header 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-production 1089s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1089s # valuenick: user 1089s # valuenum: 4 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # value-tail 1089s # EnumName: GDBusServerFlags 1089s # enum_name: g_dbus_server_flags 1089s # ENUMNAME: G_DBUS_SERVER_FLAGS 1089s # ENUMSHORT: DBUS_SERVER_FLAGS 1089s # ENUMPREFIX: G 1089s # enumsince: 1089s # type: flags 1089s # Type: Flags 1089s # TYPE: FLAGS 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 23 __main__.TestRspMkenums.test_empty_header 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpda0mivpv 1089s # rspfile: True 1089s # /tmp/tmpda0mivpv/tmplfpbzfzg.h: 1089s # /tmp/tmpda0mivpv/tmpbtphzo69.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpda0mivpv/tmpbtphzo69.template /tmp/tmpda0mivpv/tmplfpbzfzg.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpda0mivpv/tmp_lp61uyw'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 24 __main__.TestRspMkenums.test_empty_template 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmp_c7to_rk 1089s # rspfile: True 1089s # /tmp/tmp_c7to_rk/tmpdrrf86cb.template: 1089s # Response file contains: --template /tmp/tmp_c7to_rk/tmpdrrf86cb.template 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_c7to_rk/tmpd27lqbg8'] 1089s # Return code: 0 1089s # Output: 1089s # /* 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. */ 1089s # 1089s # 1089s # /* Generated data ends here */ 1089s # Error: 1089s ok 25 __main__.TestRspMkenums.test_enum_name 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmpuxj4lsn0 1089s # rspfile: True 1089s # /tmp/tmpuxj4lsn0/tmp2tk8zvq3.h: 1089s # typedef enum _SomeEnumIdentifier { 1089s # ENUM_VALUE 1089s # } SomeEnumIdentifier; 1089s # 1089s # /tmp/tmpuxj4lsn0/tmpw0aerxnt.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmpuxj4lsn0/tmpw0aerxnt.template /tmp/tmpuxj4lsn0/tmp2tk8zvq3.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpuxj4lsn0/tmp8y0anbmi'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmpuxj4lsn0/tmp2tk8zvq3.h 1089s # basename: tmp2tk8zvq3.h 1089s # enumeration-production 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE 1089s # valuenick: value 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: SomeEnumIdentifier 1089s # enum_name: some_enum_identifier 1089s # ENUMNAME: SOME_ENUM_IDENTIFIER 1089s # ENUMSHORT: ENUM_IDENTIFIER 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 26 __main__.TestRspMkenums.test_enum_private_public 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmp1pvfidzz 1089s # rspfile: True 1089s # /tmp/tmp1pvfidzz/tmptjixb9uo.h: 1089s # typedef enum { 1089s # ENUM_VALUE_PUBLIC1, 1089s # /*< private >*/ 1089s # ENUM_VALUE_PRIVATE, 1089s # } SomeEnumA 1089s # 1089s # /tmp/tmp1pvfidzz/tmpjijvhzp8.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmp1pvfidzz/tmpjijvhzp8.template /tmp/tmp1pvfidzz/tmptjixb9uo.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp1pvfidzz/tmpye5vi7n_'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmp1pvfidzz/tmptjixb9uo.h 1089s # basename: tmptjixb9uo.h 1089s # enumeration-production 1089s # EnumName: SomeEnumA 1089s # enum_name: some_enum_a 1089s # ENUMNAME: SOME_ENUM_A 1089s # ENUMSHORT: ENUM_A 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: SomeEnumA 1089s # enum_name: some_enum_a 1089s # ENUMNAME: SOME_ENUM_A 1089s # ENUMSHORT: ENUM_A 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE_PUBLIC1 1089s # valuenick: public1 1089s # valuenum: 0 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: SomeEnumA 1089s # enum_name: some_enum_a 1089s # ENUMNAME: SOME_ENUM_A 1089s # ENUMSHORT: ENUM_A 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s # 1089s # /tmp/tmp1pvfidzz/tmp4d81j77m.h: 1089s # typedef enum { 1089s # /*< private >*/ 1089s # ENUM_VALUE_PRIVATE, 1089s # /*< public >*/ 1089s # ENUM_VALUE_PUBLIC2, 1089s # } SomeEnumB; 1089s # 1089s # /tmp/tmp1pvfidzz/tmppe61kdg7.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmp1pvfidzz/tmppe61kdg7.template /tmp/tmp1pvfidzz/tmp4d81j77m.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp1pvfidzz/tmpxasqsm35'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmp1pvfidzz/tmp4d81j77m.h 1089s # basename: tmp4d81j77m.h 1089s # enumeration-production 1089s # EnumName: SomeEnumB 1089s # enum_name: some_enum_b 1089s # ENUMNAME: SOME_ENUM_B 1089s # ENUMSHORT: ENUM_B 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: SomeEnumB 1089s # enum_name: some_enum_b 1089s # ENUMNAME: SOME_ENUM_B 1089s # ENUMSHORT: ENUM_B 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE_PUBLIC2 1089s # valuenick: public2 1089s # valuenum: 1 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: SomeEnumB 1089s # enum_name: some_enum_b 1089s # ENUMNAME: SOME_ENUM_B 1089s # ENUMSHORT: ENUM_B 1089s # ENUMPREFIX: SOME 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1089s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1089s # glib-mkenums: /usr/bin/glib-mkenums 1089s # tmpdir: /tmp/tmp8o7kzeds 1089s # rspfile: True 1089s # /tmp/tmp8o7kzeds/tmpciawv35z.h: 1089s # typedef enum { 1089s # /*< private >*/ 1089s # ENUM_VALUE_PRIVATE = 5, 1089s # /*< public >*/ 1089s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1089s # } TestSymbolicEnum; 1089s # 1089s # /tmp/tmp8o7kzeds/tmpjxqpssxk.template: 1089s # /*** BEGIN file-header ***/ 1089s # file-header 1089s # /*** END file-header ***/ 1089s # 1089s # /*** BEGIN file-production ***/ 1089s # file-production 1089s # filename: @filename@ 1089s # basename: @basename@ 1089s # /*** END file-production ***/ 1089s # 1089s # /*** BEGIN enumeration-production ***/ 1089s # enumeration-production 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END enumeration-production ***/ 1089s # 1089s # /*** BEGIN value-header ***/ 1089s # value-header 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-header ***/ 1089s # 1089s # /*** BEGIN value-production ***/ 1089s # value-production 1089s # VALUENAME: @VALUENAME@ 1089s # valuenick: @valuenick@ 1089s # valuenum: @valuenum@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-production ***/ 1089s # 1089s # /*** BEGIN value-tail ***/ 1089s # value-tail 1089s # EnumName: @EnumName@ 1089s # enum_name: @enum_name@ 1089s # ENUMNAME: @ENUMNAME@ 1089s # ENUMSHORT: @ENUMSHORT@ 1089s # ENUMPREFIX: @ENUMPREFIX@ 1089s # enumsince: @enumsince@ 1089s # type: @type@ 1089s # Type: @Type@ 1089s # TYPE: @TYPE@ 1089s # /*** END value-tail ***/ 1089s # 1089s # /*** BEGIN comment ***/ 1089s # comment 1089s # comment: @comment@ 1089s # /*** END comment ***/ 1089s # 1089s # /*** BEGIN file-tail ***/ 1089s # file-tail 1089s # /*** END file-tail ***/ 1089s # 1089s # Response file contains: --template /tmp/tmp8o7kzeds/tmpjxqpssxk.template /tmp/tmp8o7kzeds/tmpciawv35z.h 1089s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8o7kzeds/tmp437f28pf'] 1089s # Return code: 0 1089s # Output: 1089s # comment 1089s # 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. 1089s # 1089s # 1089s # file-header 1089s # file-production 1089s # filename: /tmp/tmp8o7kzeds/tmpciawv35z.h 1089s # basename: tmpciawv35z.h 1089s # enumeration-production 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-header 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-production 1089s # VALUENAME: ENUM_VALUE_PUBLIC 1089s # valuenick: public 1089s # valuenum: 7 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # value-tail 1089s # EnumName: TestSymbolicEnum 1089s # enum_name: test_symbolic_enum 1089s # ENUMNAME: TEST_SYMBOLIC_ENUM 1089s # ENUMSHORT: SYMBOLIC_ENUM 1089s # ENUMPREFIX: TEST 1089s # enumsince: 1089s # type: enum 1089s # Type: Enum 1089s # TYPE: ENUM 1089s # file-tail 1089s # 1089s # comment 1089s # comment: Generated data ends here 1089s # Error: 1090s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmpfgd5m68b 1090s # rspfile: True 1090s # /tmp/tmpfgd5m68b/tmpscww3d8i.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-tail ***/ 1090s # Response file contains: --template /tmp/tmpfgd5m68b/tmpscww3d8i.template 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfgd5m68b/tmplx9rgmnx'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # file-tail 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s # WARNING: @filename@ used in file-header section. 1090s # WARNING: @basename@ used in file-header section. 1090s # WARNING: @filename@ used in file-tail section. 1090s # WARNING: @basename@ used in file-tail section. 1090s ok 29 __main__.TestRspMkenums.test_help 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmp3si_ty5j 1090s # rspfile: True 1090s # Response file contains: --help 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3si_ty5j/tmp4_n6nm6l'] 1090s # Return code: 0 1090s # Output: 1090s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1090s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1090s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1090s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1090s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1090s # [--output OUTPUT] [--version] 1090s # [args ...] 1090s # 1090s # positional arguments: 1090s # args One or more input files, or a single argument 1090s # @rspfile_path pointing to a file that contains the 1090s # actual arguments 1090s # 1090s # options: 1090s # -h, --help show this help message and exit 1090s # --identifier-prefix IDPREFIX 1090s # Identifier prefix 1090s # --symbol-prefix SYMPREFIX 1090s # Symbol prefix 1090s # --fhead FHEAD Output file header 1090s # --ftail FTAIL Output file footer 1090s # --fprod FPROD Put out TEXT every time a new input file is being 1090s # processed. 1090s # --eprod EPROD Per enum text, produced prior to value iterations 1090s # --vhead VHEAD Value header, produced before iterating over enum 1090s # values 1090s # --vprod VPROD Value text, produced for each enum value. 1090s # --vtail VTAIL Value tail, produced after iterating over enum values 1090s # --comments COMMENT_TMPL 1090s # Comment structure 1090s # --template TEMPLATE Template file 1090s # --output OUTPUT 1090s # --version, -v Print version information 1090s # 1090s # Production text substitutions: 1090s # @EnumName@ PrefixTheXEnum 1090s # @enum_name@ prefix_the_xenum 1090s # @ENUMNAME@ PREFIX_THE_XENUM 1090s # @ENUMSHORT@ THE_XENUM 1090s # @ENUMPREFIX@ PREFIX 1090s # @enumsince@ the user-provided since value given 1090s # @VALUENAME@ PREFIX_THE_XVALUE 1090s # @valuenick@ the-xvalue 1090s # @valuenum@ the integer value (limited support, Since: 2.26) 1090s # @type@ either enum or flags 1090s # @Type@ either Enum or Flags 1090s # @TYPE@ either ENUM or FLAGS 1090s # @filename@ name of current input file 1090s # @basename@ base name of the current input file (Since: 2.22) 1090s # Error: 1090s ok 30 __main__.TestRspMkenums.test_no_args 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmptfroowys 1090s # rspfile: True 1090s # Response file contains: 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmptfroowys/tmp3se4tx5h'] 1090s # Return code: 0 1090s # Output: 1090s # /* 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. */ 1090s # 1090s # 1090s # /* Generated data ends here */ 1090s # Error: 1090s ok 31 __main__.TestRspMkenums.test_no_headers 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmpnuebvtrh 1090s # rspfile: True 1090s # /tmp/tmpnuebvtrh/tmphq6_cnmf.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN file-production ***/ 1090s # file-production 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-production ***/ 1090s # 1090s # /*** BEGIN enumeration-production ***/ 1090s # enumeration-production 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END enumeration-production ***/ 1090s # 1090s # /*** BEGIN value-header ***/ 1090s # value-header 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-header ***/ 1090s # 1090s # /*** BEGIN value-production ***/ 1090s # value-production 1090s # VALUENAME: @VALUENAME@ 1090s # valuenick: @valuenick@ 1090s # valuenum: @valuenum@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-production ***/ 1090s # 1090s # /*** BEGIN value-tail ***/ 1090s # value-tail 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-tail ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # /*** END file-tail ***/ 1090s # 1090s # Response file contains: --template /tmp/tmpnuebvtrh/tmphq6_cnmf.template 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpnuebvtrh/tmpptdg0azx'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # file-tail 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s ok 32 __main__.TestRspMkenums.test_no_nick 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmpocbymeum 1090s # rspfile: True 1090s # /tmp/tmpocbymeum/tmpjxk3r5jt.h: 1090s # typedef enum { 1090s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1090s # } GeglSamplerType; 1090s # 1090s # /tmp/tmpocbymeum/tmpacoel4n3.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN file-production ***/ 1090s # file-production 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-production ***/ 1090s # 1090s # /*** BEGIN enumeration-production ***/ 1090s # enumeration-production 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END enumeration-production ***/ 1090s # 1090s # /*** BEGIN value-header ***/ 1090s # value-header 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-header ***/ 1090s # 1090s # /*** BEGIN value-production ***/ 1090s # value-production 1090s # VALUENAME: @VALUENAME@ 1090s # valuenick: @valuenick@ 1090s # valuenum: @valuenum@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-production ***/ 1090s # 1090s # /*** BEGIN value-tail ***/ 1090s # value-tail 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-tail ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # /*** END file-tail ***/ 1090s # 1090s # Response file contains: --template /tmp/tmpocbymeum/tmpacoel4n3.template /tmp/tmpocbymeum/tmpjxk3r5jt.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpocbymeum/tmpvktwfjgj'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # file-production 1090s # filename: /tmp/tmpocbymeum/tmpjxk3r5jt.h 1090s # basename: tmpjxk3r5jt.h 1090s # enumeration-production 1090s # EnumName: GeglSamplerType 1090s # enum_name: gegl_sampler_type 1090s # ENUMNAME: GEGL_SAMPLER_TYPE 1090s # ENUMSHORT: SAMPLER_TYPE 1090s # ENUMPREFIX: GEGL 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-header 1090s # EnumName: GeglSamplerType 1090s # enum_name: gegl_sampler_type 1090s # ENUMNAME: GEGL_SAMPLER_TYPE 1090s # ENUMSHORT: SAMPLER_TYPE 1090s # ENUMPREFIX: GEGL 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-production 1090s # VALUENAME: GEGL_SAMPLER_NEAREST 1090s # valuenick: nearest 1090s # valuenum: 0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-tail 1090s # EnumName: GeglSamplerType 1090s # enum_name: gegl_sampler_type 1090s # ENUMNAME: GEGL_SAMPLER_TYPE 1090s # ENUMSHORT: SAMPLER_TYPE 1090s # ENUMPREFIX: GEGL 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # file-tail 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmp_2jsqgc4 1090s # rspfile: True 1090s # /tmp/tmp_2jsqgc4/tmpfl9ek_ue.h: 1090s # /* Copyright © La Peña */ 1090s # typedef enum { 1090s # ENUM_VALUE 1090s # } SomeEnumIdentifier; 1090s # 1090s # /tmp/tmp_2jsqgc4/tmpsubormle.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN file-production ***/ 1090s # file-production 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-production ***/ 1090s # 1090s # /*** BEGIN enumeration-production ***/ 1090s # enumeration-production 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END enumeration-production ***/ 1090s # 1090s # /*** BEGIN value-header ***/ 1090s # value-header 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-header ***/ 1090s # 1090s # /*** BEGIN value-production ***/ 1090s # value-production 1090s # VALUENAME: @VALUENAME@ 1090s # valuenick: @valuenick@ 1090s # valuenum: @valuenum@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-production ***/ 1090s # 1090s # /*** BEGIN value-tail ***/ 1090s # value-tail 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-tail ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # /*** END file-tail ***/ 1090s # 1090s # Response file contains: --template /tmp/tmp_2jsqgc4/tmpsubormle.template /tmp/tmp_2jsqgc4/tmpfl9ek_ue.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_2jsqgc4/tmp40s99a1b'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # file-production 1090s # filename: /tmp/tmp_2jsqgc4/tmpfl9ek_ue.h 1090s # basename: tmpfl9ek_ue.h 1090s # enumeration-production 1090s # EnumName: SomeEnumIdentifier 1090s # enum_name: some_enum_identifier 1090s # ENUMNAME: SOME_ENUM_IDENTIFIER 1090s # ENUMSHORT: ENUM_IDENTIFIER 1090s # ENUMPREFIX: SOME 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-header 1090s # EnumName: SomeEnumIdentifier 1090s # enum_name: some_enum_identifier 1090s # ENUMNAME: SOME_ENUM_IDENTIFIER 1090s # ENUMSHORT: ENUM_IDENTIFIER 1090s # ENUMPREFIX: SOME 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-production 1090s # VALUENAME: ENUM_VALUE 1090s # valuenick: value 1090s # valuenum: 0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-tail 1090s # EnumName: SomeEnumIdentifier 1090s # enum_name: some_enum_identifier 1090s # ENUMNAME: SOME_ENUM_IDENTIFIER 1090s # ENUMSHORT: ENUM_IDENTIFIER 1090s # ENUMPREFIX: SOME 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # file-tail 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1090s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1090s ok 34 __main__.TestRspMkenums.test_reproducible 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmp7hd14lco 1090s # rspfile: True 1090s # /tmp/tmp7hd14lco/tmpx4lkfghd.template: template 1090s # Response file contains: --template /tmp/tmp7hd14lco/tmpx4lkfghd.template /tmp/tmp7hd14lco/tmp9ch2f_q71.h /tmp/tmp7hd14lco/tmp_6fdrqod2.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp7hd14lco/tmp2v161e2n'] 1090s # Return code: 0 1090s # Output: 1090s # /* 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. */ 1090s # 1090s # 1090s # /* Generated data ends here */ 1090s # Error: 1090s # 1090s # /tmp/tmp7hd14lco/tmpzr44ubb1.template: template 1090s # Response file contains: --template /tmp/tmp7hd14lco/tmpzr44ubb1.template /tmp/tmp7hd14lco/tmp_6fdrqod2.h /tmp/tmp7hd14lco/tmp9ch2f_q71.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp7hd14lco/tmpge2kiyw2'] 1090s # Return code: 0 1090s # Output: 1090s # /* 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. */ 1090s # 1090s # 1090s # /* Generated data ends here */ 1090s # Error: 1090s ok 35 __main__.TestRspMkenums.test_since 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmpm6d1rg97 1090s # rspfile: True 1090s # /tmp/tmpm6d1rg97/tmpn63d_i75.h: 1090s # typedef enum { /*< since=1.0 >*/ 1090s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1090s # } QmiWmsMessageProtocol; 1090s # 1090s # /tmp/tmpm6d1rg97/tmpvryezblf.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN file-production ***/ 1090s # file-production 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-production ***/ 1090s # 1090s # /*** BEGIN enumeration-production ***/ 1090s # enumeration-production 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END enumeration-production ***/ 1090s # 1090s # /*** BEGIN value-header ***/ 1090s # value-header 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-header ***/ 1090s # 1090s # /*** BEGIN value-production ***/ 1090s # value-production 1090s # VALUENAME: @VALUENAME@ 1090s # valuenick: @valuenick@ 1090s # valuenum: @valuenum@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-production ***/ 1090s # 1090s # /*** BEGIN value-tail ***/ 1090s # value-tail 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-tail ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # /*** END file-tail ***/ 1090s # 1090s # Response file contains: --template /tmp/tmpm6d1rg97/tmpvryezblf.template /tmp/tmpm6d1rg97/tmpn63d_i75.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpm6d1rg97/tmpmncmglt5'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # file-production 1090s # filename: /tmp/tmpm6d1rg97/tmpn63d_i75.h 1090s # basename: tmpn63d_i75.h 1090s # enumeration-production 1090s # EnumName: QmiWmsMessageProtocol 1090s # enum_name: qmi_wms_message_protocol 1090s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1090s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1090s # ENUMPREFIX: QMI 1090s # enumsince: 1.0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-header 1090s # EnumName: QmiWmsMessageProtocol 1090s # enum_name: qmi_wms_message_protocol 1090s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1090s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1090s # ENUMPREFIX: QMI 1090s # enumsince: 1.0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-production 1090s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1090s # valuenick: cdma 1090s # valuenum: 0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-tail 1090s # EnumName: QmiWmsMessageProtocol 1090s # enum_name: qmi_wms_message_protocol 1090s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1090s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1090s # ENUMPREFIX: QMI 1090s # enumsince: 1.0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # file-tail 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1090s # glib-mkenums: /usr/bin/glib-mkenums 1090s # tmpdir: /tmp/tmppyi4pa8h 1090s # rspfile: True 1090s # /tmp/tmppyi4pa8h/tmpa_ntgk75.h: 1090s # typedef enum { 1090s # FOO_VALUE /*< nick="eek, a comma" >*/ 1090s # } Foo; 1090s # 1090s # /tmp/tmppyi4pa8h/tmpv17fjcfg.template: 1090s # /*** BEGIN file-header ***/ 1090s # file-header 1090s # /*** END file-header ***/ 1090s # 1090s # /*** BEGIN file-production ***/ 1090s # file-production 1090s # filename: @filename@ 1090s # basename: @basename@ 1090s # /*** END file-production ***/ 1090s # 1090s # /*** BEGIN enumeration-production ***/ 1090s # enumeration-production 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END enumeration-production ***/ 1090s # 1090s # /*** BEGIN value-header ***/ 1090s # value-header 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-header ***/ 1090s # 1090s # /*** BEGIN value-production ***/ 1090s # value-production 1090s # VALUENAME: @VALUENAME@ 1090s # valuenick: @valuenick@ 1090s # valuenum: @valuenum@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-production ***/ 1090s # 1090s # /*** BEGIN value-tail ***/ 1090s # value-tail 1090s # EnumName: @EnumName@ 1090s # enum_name: @enum_name@ 1090s # ENUMNAME: @ENUMNAME@ 1090s # ENUMSHORT: @ENUMSHORT@ 1090s # ENUMPREFIX: @ENUMPREFIX@ 1090s # enumsince: @enumsince@ 1090s # type: @type@ 1090s # Type: @Type@ 1090s # TYPE: @TYPE@ 1090s # /*** END value-tail ***/ 1090s # 1090s # /*** BEGIN comment ***/ 1090s # comment 1090s # comment: @comment@ 1090s # /*** END comment ***/ 1090s # 1090s # /*** BEGIN file-tail ***/ 1090s # file-tail 1090s # /*** END file-tail ***/ 1090s # 1090s # Response file contains: --template /tmp/tmppyi4pa8h/tmpv17fjcfg.template /tmp/tmppyi4pa8h/tmpa_ntgk75.h 1090s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppyi4pa8h/tmp72ezbdb6'] 1090s # Return code: 0 1090s # Output: 1090s # comment 1090s # 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. 1090s # 1090s # 1090s # file-header 1090s # file-production 1090s # filename: /tmp/tmppyi4pa8h/tmpa_ntgk75.h 1090s # basename: tmpa_ntgk75.h 1090s # enumeration-production 1090s # EnumName: Foo 1090s # enum_name: foo_ 1090s # ENUMNAME: FOO_ 1090s # ENUMSHORT: 1090s # ENUMPREFIX: FOO 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-header 1090s # EnumName: Foo 1090s # enum_name: foo_ 1090s # ENUMNAME: FOO_ 1090s # ENUMSHORT: 1090s # ENUMPREFIX: FOO 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-production 1090s # VALUENAME: FOO_VALUE 1090s # valuenick: eek, a comma 1090s # valuenum: 0 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # value-tail 1090s # EnumName: Foo 1090s # enum_name: foo_ 1090s # ENUMNAME: FOO_ 1090s # ENUMSHORT: 1090s # ENUMPREFIX: FOO 1090s # enumsince: 1090s # type: enum 1090s # Type: Enum 1090s # TYPE: ENUM 1090s # file-tail 1090s # 1090s # comment 1090s # comment: Generated data ends here 1090s # Error: 1090s 1..36 1090s ok - glib/mkenums.py.test 1090s # Running test: glib/init.test 1090s TAP version 14 1090s # random seed: R02Se4ceb8e1dc356fa3b5b13a94d9b71e06 1090s 1..2 1090s # Start of thread tests 1090s # Start of deprecated tests 1090s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/home 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/cache 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/system-config2 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/config 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/system-data2 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/data 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/state 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_W1HOE3/thread/deprecated/init/.dirs/runtime 1090s ok 1 /thread/deprecated/init 1090s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1090s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_W1HOE3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1090s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1090s # End of deprecated tests 1090s # End of thread tests 1090s ok - glib/init.test 1090s # Running test: glib/proxy-test.test 1090s TAP version 14 1090s # random seed: R02Sf237482d45773ec842636240fbb4d00d 1090s 1..11 1090s # Start of proxy tests 1090s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1090s ok 1 /proxy/direct_sync 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faef40 and GSocketClientAsyncConnectData 0xba94e4fae460 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fafa60 for GSocketClientAsyncConnectData 0xba94e4fae460 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s ok 2 /proxy/direct_async 1090s ok 3 /proxy/single_sync 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf520 and GSocketClientAsyncConnectData 0xba94e4fae460 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb0bc0 for GSocketClientAsyncConnectData 0xba94e4fae460 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s ok 4 /proxy/single_async 1090s ok 5 /proxy/multiple_sync 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf810 and GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb1100 for GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb10a0 for GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s ok 6 /proxy/multiple_async 1090s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1090s ok 7 /proxy/invalid-uris-sync 1090s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf400 and GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf520 and GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf400 and GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fafac0 for GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf520 and GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb1300 for GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s ok 8 /proxy/invalid-uris-async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faef40 and GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1090s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4fb1420 and GSocketClientAsyncConnectData 0xba94e4faf9b0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb0a20 for GSocketClientAsyncConnectData 0xba94e4faf9b0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf400 and GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fafac0 for GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s ok 9 /proxy/dns 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faef40 and GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fafac0 for GSocketClientAsyncConnectData 0xba94e4faf7a0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faf400 and GSocketClientAsyncConnectData 0xba94e4faf5e0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s ok - glib/proxy-test.test 1090s # Running test: glib/cmph-bdz.test 1090s ok - glib/cmph-bdz.test 1090s # Running test: glib/win32-appinfo.test 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb0a20 for GSocketClientAsyncConnectData 0xba94e4faf5e0 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1090s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1090s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xba94e4faef40 and GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1090s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xba94e4fb1100 for GSocketClientAsyncConnectData 0xba94e4fb1290 1090s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1090s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1090s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1090s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1090s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1090s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1090s ok 10 /proxy/override 1090s ok 11 /proxy/enumerator-ports 1090s # End of proxy tests 1090s TAP version 14 1090s # random seed: R02S6804178bcb10419e30d3f92e92f278a0 1090s 1..2 1090s # Start of cmph-bdz tests 1090s ok 1 /cmph-bdz/search 1090s ok 2 /cmph-bdz/search-packed 1090s # End of cmph-bdz tests 1090s TAP version 14 1090s # random seed: R02Sf5931b913292e8e14e8134372ef0ffb5 1090s 1..5 1090s # Start of appinfo tests 1090s ok 1 /appinfo/utf16-strfuncs 1090s ok - glib/win32-appinfo.test 1090s # Running test: glib/refcount-macro.test 1090s ok - glib/refcount-macro.test 1090s # Running test: glib/signals-refcount3.test 1090s ok 2 /appinfo/win32-extract-executable 1090s ok 3 /appinfo/win32-rundll32-fixup 1090s ok 4 /appinfo/win32-parse-filename 1090s ok 5 /appinfo/win32-utf16-conversion-fail 1090s # Start of subprocess tests 1090s # End of subprocess tests 1090s # End of appinfo tests 1090s TAP version 14 1090s # random seed: R02S4c167364770e3851c7cfb50c331cbf0e 1090s 1..4 1090s # Start of refcount tests 1090s ok 1 /refcount/grefcount 1090s ok 2 /refcount/gatomicrefcount 1090s # Start of grefcount tests 1090s ok 3 /refcount/grefcount/saturation 1090s # End of grefcount tests 1090s # Start of gatomicrefcount tests 1090s ok 4 /refcount/gatomicrefcount/saturation 1090s # End of gatomicrefcount tests 1090s # End of refcount tests 1090s TAP version 14 1090s # random seed: R02Sdd3b51be201d05c5bcf0a398c5832e3b 1090s 1..1 1090s # Start of gobject tests 1090s # Start of refcount tests 1090s # init 0xb3c8694b14a0 1090s # 1090s # init 0xb3c8694a9580 1090s # 1093s # Executing: glib/signals-refcount3.test 1095s # dispose 0xb3c8694b14a0! 1095s # 1095s # dispose 0xb3c8694a9580! 1095s # 1095s ok 1 /gobject/refcount/signals 1095s # slow test /gobject/refcount/signals executed in 5.00 secs 1095s # End of refcount tests 1095s # End of gobject tests 1095s ok - glib/signals-refcount3.test 1095s # Running test: glib/stream-rw_all.test 1095s TAP version 14 1095s # random seed: R02Sd85b435a9ff2a57a3d6f41848a58c923 1095s 1..3 1095s # Start of stream tests 1095s # Start of read_all_async tests 1095s ok 1 /stream/read_all_async/memory 1095s # End of read_all_async tests 1095s # Start of write_all_async tests 1095s ok 2 /stream/write_all_async/memory 1095s # End of write_all_async tests 1095s # Start of read_write_all_async tests 1095s ok 3 /stream/read_write_all_async/pipe 1095s # End of read_write_all_async tests 1095s # End of stream tests 1095s ok - glib/stream-rw_all.test 1095s # Running test: glib/bytes.test 1095s ok - glib/bytes.test 1095s # Running test: glib/async-close-output-stream.test 1095s ok - glib/async-close-output-stream.test 1095s # Running test: glib/signals-refcount4.test 1095s TAP version 14 1095s # random seed: R02S5f13aa466586763444be7e479616cb7a 1095s 1..21 1095s # Start of bytes tests 1095s ok 1 /bytes/new 1095s ok 2 /bytes/new-take 1095s ok 3 /bytes/new-static 1095s ok 4 /bytes/new-with-free-func 1095s ok 5 /bytes/new-from-bytes 1095s ok 6 /bytes/new-from-bytes-slice 1095s ok 7 /bytes/new-from-bytes-shared-ref 1095s ok 8 /bytes/hash 1095s ok 9 /bytes/equal 1095s ok 10 /bytes/compare 1095s ok 11 /bytes/null 1095s ok 12 /bytes/get-region 1095s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1095s ok 13 /bytes/unref-null 1095s # Start of to-data tests 1095s ok 14 /bytes/to-data/transferred 1095s ok 15 /bytes/to-data/two-refs 1095s ok 16 /bytes/to-data/non-malloc 1095s ok 17 /bytes/to-data/different-free-func 1095s # End of to-data tests 1095s # Start of to-array tests 1095s ok 18 /bytes/to-array/transferred 1095s ok 19 /bytes/to-array/two-refs 1095s ok 20 /bytes/to-array/non-malloc 1095s # Start of transferred tests 1095s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1095s ok 21 /bytes/to-array/transferred/oversize 1095s # End of transferred tests 1095s # End of to-array tests 1095s # End of bytes tests 1095s TAP version 14 1095s # random seed: R02S9abc95a40b6657ed0a222146d38a8f7e 1095s 1..3 1095s # Start of close-async tests 1095s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1095s ok 1 /close-async/without-flush 1095s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1095s ok 2 /close-async/with-flush 1095s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1095s ok 3 /close-async/with-async-flush 1095s # End of close-async tests 1095s TAP version 14 1095s # random seed: R02S62c4b5da4e7796b85d81b3c302b9b1bb 1095s 1..1 1095s # Start of gobject tests 1095s # Start of refcount tests 1095s # init 0xca01340264a0 1095s # 1095s # init 0xca013401e580 1095s # 1098s # Executing: glib/signals-refcount4.test 1100s # dispose 0xca01340264a0! 1100s # 1100s # dispose 0xca013401e580! 1100s # 1100s ok 1 /gobject/refcount/signals 1100s # slow test /gobject/refcount/signals executed in 5.00 secs 1100s # End of refcount tests 1100s # End of gobject tests 1100s ok - glib/signals-refcount4.test 1100s # Running test: glib/portal-support-flatpak-full.test 1100s TAP version 14 1100s # random seed: R02S0157a3c3d679b2de6bf8a2e374c5ff1f 1100s 1..1 1100s # Start of portal-support tests 1100s # Start of flatpak tests 1100s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/home 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/cache 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/system-config2 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/config 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/system-data2 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/data 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/state 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/runtime 1100s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_NZUXE3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1100s ok 1 /portal-support/flatpak/full 1100s # End of flatpak tests 1100s # End of portal-support tests 1100s ok - glib/portal-support-flatpak-full.test 1100s TAP version 14 1100s # random seed: R02S04a3fd9c6a8023103ff5d8b94127fada 1100s 1..1 1100s # Start of gdbus tests 1100s # Start of sasl tests 1100s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/home 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/cache 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/system-config2 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/config 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/system-data2 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/data 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/state 1100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_BKCXE3/gdbus/sasl/server/.dirs/runtime 1100s # New handshake: EXTERNAL with incorrect initial response 1100s # C:“AUTH EXTERNAL 30” 1100s # Expect: /^REJECTED.*$/ 1100s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1100s # New handshake: EXTERNAL without initial response, failing to authenticate 1100s # C:“AUTH EXTERNAL” 1100s # Expect: /^DATA$/ 1100s # S:“DATA” 1100s # C:“DATA 30” 1100s # Expect: /^REJECTED.*$/ 1100s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1100s # New handshake: EXTERNAL with initial response 1100s # C:“AUTH EXTERNAL 31303030” 1100s # Expect: /^OK [0-9a-f]+$/ 1100s # S:“OK 7702d1acdae640de0aba19e768f3d1bb” 1100s # New handshake: EXTERNAL without initial response 1100s # C:“AUTH EXTERNAL” 1100s # Expect: /^DATA$/ 1100s # S:“DATA” 1100s # C:“DATA 31303030” 1100s # Expect: /^OK [0-9a-f]+$/ 1100s # S:“OK 7702d1acdae640de0aba19e768f3d1bb” 1100s # New handshake: EXTERNAL with empty authorization identity 1100s # C:“AUTH EXTERNAL” 1100s # Expect: /^DATA$/ 1100s # S:“DATA” 1100s # C:“DATA” 1100s # Expect: /^OK [0-9a-f]+$/ 1100s # S:“OK 7702d1acdae640de0aba19e768f3d1bb” 1100s # New handshake: EXTERNAL with empty authorization identity and whitespace 1100s # C:“AUTH EXTERNAL” 1100s # Expect: /^DATA$/ 1100s # S:“DATA” 1100s # C:“DATA ” 1100s # Expect: /^OK [0-9a-f]+$/ 1100s # S:“OK 7702d1acdae640de0aba19e768f3d1bb” 1100s ok 1 /gdbus/sasl/server 1100s # End of sasl tests 1100s # End of gdbus tests 1100s TAP version 14 1100s # random seed: R02S8a25a56269567c106ea169951d6c5f14 1100s 1..5 1100s # Start of timeout tests 1100s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1100s # Running test: glib/gdbus-sasl.test 1100s ok - glib/gdbus-sasl.test 1100s # Running test: glib/timeout.test 1102s ok 1 /timeout/seconds 1102s # slow test /timeout/seconds executed in 2.10 secs 1103s # Executing: glib/timeout.test 1104s ok 2 /timeout/seconds-once 1104s # slow test /timeout/seconds-once executed in 2.10 secs 1104s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1106s ok 3 /timeout/weeks-overflow 1106s # slow test /timeout/weeks-overflow executed in 2.10 secs 1106s ok 4 /timeout/far-future-ready-time 1108s # Executing: glib/timeout.test 1113s # Executing: glib/timeout.test 1117s ok 5 /timeout/rounding 1117s # slow test /timeout/rounding executed in 10.54 secs 1117s # End of timeout tests 1117s ok - glib/timeout.test 1117s # Running test: glib/gdbus-test-codegen-old.test 1117s TAP version 14 1117s # random seed: R02S0b1137da6aea9b846eb9d428e11a532f 1117s 1..8 1117s # Start of gdbus tests 1117s # Start of codegen tests 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/annotations/.dirs/runtime 1117s ok 1 /gdbus/codegen/annotations 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/interface_stability/.dirs/runtime 1117s ok 2 /gdbus/codegen/interface_stability 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/object-manager/.dirs/runtime 1117s ok 3 /gdbus/codegen/object-manager 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/property-naming/.dirs/runtime 1117s ok 4 /gdbus/codegen/property-naming 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/autocleanups/.dirs/runtime 1117s ok 5 /gdbus/codegen/autocleanups 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/deprecations/.dirs/runtime 1117s ok 6 /gdbus/codegen/deprecations 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1117s ok 7 /gdbus/codegen/standalone-interface-info 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_X8ZOE3/gdbus/codegen/unix-fd-list/.dirs/runtime 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1117s ok 8 /gdbus/codegen/unix-fd-list 1117s # End of codegen tests 1117s # End of gdbus tests 1117s ok - glib/gdbus-test-codegen-old.test 1117s # Running test: glib/gdbus-proxy-well-known-name.test 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s TAP version 14 1117s # random seed: R02Scb8691f1f05c851656d76dc3a7128e08 1117s 1..1 1117s # Start of gdbus tests 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_40EOE3/gdbus/proxy-well-known-name/.dirs/runtime 1117s ok - glib/gdbus-proxy-well-known-name.test 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1117s ok 1 /gdbus/proxy-well-known-name 1117s # End of gdbus tests 1117s # Running test: glib/inet-address.test 1117s TAP version 14 1117s # random seed: R02S01d1b77d370e509c73cebe84f37193bd 1117s 1..11 1117s # Start of inet-address tests 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 1117s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 1117s ok 1 /inet-address/parse 1117s ok 2 /inet-address/any 1117s ok 3 /inet-address/loopback 1117s ok 4 /inet-address/bytes 1117s ok 5 /inet-address/property 1117s # End of inet-address tests 1117s # Start of socket-address tests 1117s ok 6 /socket-address/basic 1117s ok 7 /socket-address/to-string 1117s # End of socket-address tests 1117s # Start of address-mask tests 1117s ok 8 /address-mask/parse 1117s ok 9 /address-mask/property 1117s ok 10 /address-mask/equal 1117s ok 11 /address-mask/match 1117s # End of address-mask tests 1117s ok - glib/inet-address.test 1117s # Running test: glib/properties.test 1117s TAP version 14 1117s # random seed: R02S53888352c643352c3306d6d3021ebe34 1117s 1..14 1117s # Start of properties tests 1117s ok 1 /properties/install 1117s ok 2 /properties/install-many 1117s ok 3 /properties/notify 1117s ok 4 /properties/notify-queue 1117s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1117s ok 5 /properties/construct 1117s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1117s # Test g_object_get_property with an initialized value 1117s # Test g_object_get_property with an uninitialized value 1117s # Test g_object_get_property with a transformable value 1117s ok 6 /properties/get-property 1117s ok 7 /properties/testv_with_no_properties 1117s ok 8 /properties/testv_with_valid_properties 1117s ok 9 /properties/testv_with_invalid_property_type 1117s ok - glib/properties.test 1117s # Running test: glib/defaultiface.test 1117s ok - glib/defaultiface.test 1117s # Running test: glib/gdbus-serialization.test 1117s ok 10 /properties/testv_with_invalid_property_names 1117s ok 11 /properties/testv_getv 1117s ok 12 /properties/testv_notify_queue 1117s # Start of notify tests 1117s ok 13 /properties/notify/too-many-freezes 1117s # End of notify tests 1117s # Start of set-property tests 1117s # Start of variant tests 1117s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1117s ok 14 /properties/set-property/variant/floating 1117s # End of variant tests 1117s # End of set-property tests 1117s # End of properties tests 1117s TAP version 14 1117s # random seed: R02S7eeafec3074b40a8a88c3449cd9992d8 1117s 1..2 1117s # Start of gobject tests 1117s ok 1 /gobject/static-iface 1117s ok 2 /gobject/dynamic-iface 1117s # End of gobject tests 1117s TAP version 14 1117s # random seed: R02S162da1b5b60ff8f0590bce9af52ad64c 1117s 1..18 1117s # Start of gdbus tests 1117s # Start of message-serialize tests 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/basic/.dirs/runtime 1117s ok 1 /gdbus/message-serialize/basic 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/complex/.dirs/runtime 1117s ok 2 /gdbus/message-serialize/complex 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/invalid/.dirs/runtime 1117s ok 3 /gdbus/message-serialize/invalid 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/.dirs/runtime 1117s ok 4 /gdbus/message-serialize/header-checks 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/double-array/.dirs/runtime 1117s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1117s ok 5 /gdbus/message-serialize/double-array 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/empty-structure/.dirs/runtime 1117s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1117s ok 6 /gdbus/message-serialize/empty-structure 1117s # Start of header-checks tests 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1117s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1117s ok 7 /gdbus/message-serialize/header-checks/valid 1117s # End of header-checks tests 1117s # End of message-serialize tests 1117s # Start of message-parse tests 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1117s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1117s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/non-signature-header/.dirs/runtime 1117s ok 9 /gdbus/message-parse/non-signature-header 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1117s ok 10 /gdbus/message-parse/empty-signature-header 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1117s ok 11 /gdbus/message-parse/multiple-signature-header 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1117s ok 12 /gdbus/message-parse/over-long-signature-header 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1117s ok 13 /gdbus/message-parse/deep-header-nesting 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1117s ok 14 /gdbus/message-parse/deep-body-nesting 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/truncated/.dirs/runtime 1117s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1117s ok 15 /gdbus/message-parse/truncated 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/empty-structure/.dirs/runtime 1117s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1117s ok 16 /gdbus/message-parse/empty-structure 1117s ok - glib/gdbus-serialization.test 1117s # Running test: glib/gmenumodel.test 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/missing-header/.dirs/runtime 1117s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1117s ok 17 /gdbus/message-parse/missing-header 1117s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/home 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/cache 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/config 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/data 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/state 1117s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XEXME3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1117s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1117s ok 18 /gdbus/message-parse/invalid-header-type 1117s # End of message-parse tests 1117s # End of gdbus tests 1117s TAP version 14 1117s # random seed: R02S2e65473d956f8513f14fb802c840dad1 1117s 1..15 1117s # Start of gmenu tests 1118s ok 1 /gmenu/equality 1118s # Executing: glib/gmenumodel.test 1118s ok 2 /gmenu/random 1118s # slow test /gmenu/random executed in 0.62 secs 1118s ok 3 /gmenu/attributes 1118s ok 4 /gmenu/links 1118s ok 5 /gmenu/mutable 1118s ok 6 /gmenu/convenience 1118s ok 7 /gmenu/menuitem 1118s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1118s ok 8 /gmenu/input-validation 1118s # Start of dbus tests 1119s ok 9 /gmenu/dbus/roundtrip 1119s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1120s ok 10 /gmenu/dbus/subscriptions 1120s ok 11 /gmenu/dbus/threaded 1120s # slow test /gmenu/dbus/threaded executed in 0.75 secs 1120s # Start of peer tests 1121s ok 12 /gmenu/dbus/peer/roundtrip 1121s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1122s ok 13 /gmenu/dbus/peer/subscriptions 1122s # End of peer tests 1122s # Start of export tests 1122s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1122s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1122s ok 14 /gmenu/dbus/export/error-handling 1122s # End of export tests 1122s # End of dbus tests 1122s # Start of attributes tests 1122s ok 15 /gmenu/attributes/iterate 1122s # End of attributes tests 1122s # End of gmenu tests 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s ok - glib/gmenumodel.test 1122s # Running test: glib/tls-bindings.test 1122s TAP version 14 1122s # random seed: R02S61df1b8f233bda64c8bb9b7a1ef7bbc2 1122s 1..2 1122s # Start of tls-connection tests 1122s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1122s ok 1 /tls-connection/get-tls-channel-binding 1122s ok 2 /tls-connection/get-dtls-channel-binding 1122s # End of tls-connection tests 1122s ok - glib/tls-bindings.test 1122s # Running test: glib/gdbus-connection-slow.test 1122s TAP version 14 1122s # random seed: R02S3dc25b0934ba498f0393225b6865c5c7 1122s 1..2 1122s # Start of gdbus tests 1122s # Start of connection tests 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/flush/.dirs/runtime 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s ok 1 /gdbus/connection/flush 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_DIZQE3/gdbus/connection/large_message/.dirs/runtime 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s ok 2 /gdbus/connection/large_message 1122s # End of connection tests 1122s # End of gdbus tests 1122s ok - glib/gdbus-connection-slow.test 1122s # Running test: glib/vfs.test 1122s TAP version 14 1122s # random seed: R02S1df413363118bebcd2c7c7b6b838e4ac 1122s 1..3 1122s # Start of gvfs tests 1122s ok 1 /gvfs/local 1122s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1122s ok 2 /gvfs/register-scheme 1122s # Start of resource tests 1122s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1122s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1122s ok 3 /gvfs/resource/malformed-escaping 1122s # End of resource tests 1122s # End of gvfs tests 1122s ok - glib/vfs.test 1122s # Running test: glib/atomic-c-17.test 1122s TAP version 14 1122s # random seed: R02S75d77bac662772d8f2c506d7e9ff2bc7 1122s 1..2 1122s # Start of atomic tests 1122s ok 1 /atomic/types 1122s ok 2 /atomic/threaded 1122s # End of atomic tests 1122s ok - glib/atomic-c-17.test 1122s # Running test: glib/signals.test 1122s TAP version 14 1122s # random seed: R02S63394806c7cc584c2c14d2e439be2f04 1122s 1..31 1122s # Start of gobject tests 1122s # Start of signals tests 1122s ok 1 /gobject/signals/all-types 1122s ok 2 /gobject/signals/variant 1122s ok 3 /gobject/signals/destroy-target-object 1122s ok 4 /gobject/signals/generic-marshaller-1 1122s ok 5 /gobject/signals/generic-marshaller-2 1122s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1122s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1122s ok 8 /gobject/signals/generic-marshaller-int-return 1122s ok 9 /gobject/signals/generic-marshaller-uint-return 1122s ok 10 /gobject/signals/generic-marshaller-interface-return 1122s ok 11 /gobject/signals/custom-marshaller 1122s ok 12 /gobject/signals/connect 1122s ok 13 /gobject/signals/emission-hook 1122s ok 14 /gobject/signals/emitv 1122s ok 15 /gobject/signals/accumulator 1122s # Signal: accumulator-class-first 1122s # Signal: accumulator-class-last 1122s # Signal: accumulator-class-cleanup 1122s # Signal: accumulator-class-first-last 1122s # Signal: accumulator-class-first-last-cleanup 1122s # Signal: accumulator-class-last-cleanup 1122s ok 16 /gobject/signals/accumulator-class 1122s ok 17 /gobject/signals/introspection 1122s ok 18 /gobject/signals/block-handler 1122s ok 19 /gobject/signals/stop-emission 1122s ok 20 /gobject/signals/invocation-hint 1122s ok 21 /gobject/signals/test-disconnection-wrong-object 1122s ok 22 /gobject/signals/clear-signal-handler 1122s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1122s ok 23 /gobject/signals/lookup 1122s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1122s ok 24 /gobject/signals/parse-name 1122s ok 25 /gobject/signals/is-valid-name 1122s ok 26 /gobject/signals/weak-ref-disconnect 1122s # Start of lookup tests 1122s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1122s ok 27 /gobject/signals/lookup/invalid 1122s # End of lookup tests 1122s # Start of parse-name tests 1122s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1122s # Parser input: 1122s # Parser input: 7zip 1122s # Parser input: invalid:signal 1122s # Parser input: simple-detailed:: 1122s # Parser input: simple-detailed: 1122s # Parser input: : 1122s # Parser input: :: 1122s # Parser input: :valid-detail 1122s # Parser input: ::valid-detail 1122s ok 28 /gobject/signals/parse-name/invalid 1122s # End of parse-name tests 1122s # Start of invalid-name tests 1122s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1122s ok 29 /gobject/signals/invalid-name/colon 1122s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1122s ok 30 /gobject/signals/invalid-name/first-char 1122s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1122s ok 31 /gobject/signals/invalid-name/empty 1122s # End of invalid-name tests 1122s # End of signals tests 1122s # End of gobject tests 1122s ok - glib/signals.test 1122s # Running test: glib/keyfile.test 1122s TAP version 14 1123s # random seed: R02Sd3912e7e00378a1ef91a8c3ddfdde6a7 1123s 1..36 1123s # Start of keyfile tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/line-ends/.dirs/runtime 1123s ok 1 /keyfile/line-ends 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/whitespace/.dirs/runtime 1123s ok 2 /keyfile/whitespace 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/comments/.dirs/runtime 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1123s ok 3 /keyfile/comments 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/listing/.dirs/runtime 1123s ok 4 /keyfile/listing 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/string/.dirs/runtime 1123s ok 5 /keyfile/string 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/boolean/.dirs/runtime 1123s ok 6 /keyfile/boolean 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/number/.dirs/runtime 1123s ok 7 /keyfile/number 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/.dirs/runtime 1123s ok 8 /keyfile/locale-string 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/lists/.dirs/runtime 1123s ok 9 /keyfile/lists 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/lists-set-get/.dirs/runtime 1123s ok 10 /keyfile/lists-set-get 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/group-remove/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1123s ok 11 /keyfile/group-remove 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/key-remove/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1123s ok 12 /keyfile/key-remove 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/groups/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1123s ok 13 /keyfile/groups 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-keys/.dirs/runtime 1123s ok 14 /keyfile/duplicate-keys 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1123s ok 15 /keyfile/duplicate-groups 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/duplicate-groups2/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1123s ok 16 /keyfile/duplicate-groups2 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/group-names/.dirs/runtime 1123s ok 17 /keyfile/group-names 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/key-names/.dirs/runtime 1123s ok 18 /keyfile/key-names 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/reload/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1123s ok 19 /keyfile/reload 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/int64/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1123s ok 20 /keyfile/int64 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/load/.dirs/runtime 1123s ok 21 /keyfile/load 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/save/.dirs/runtime 1123s ok 22 /keyfile/save 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/load-fail/.dirs/runtime 1123s ok 23 /keyfile/load-fail 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/non-utf8/.dirs/runtime 1123s ok 24 /keyfile/non-utf8 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/page-boundary/.dirs/runtime 1123s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1123s ok 25 /keyfile/page-boundary 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/ref/.dirs/runtime 1123s ok 26 /keyfile/ref 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/replace-value/.dirs/runtime 1123s ok 27 /keyfile/replace-value 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/list-separator/.dirs/runtime 1123s ok 28 /keyfile/list-separator 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/empty-string/.dirs/runtime 1123s ok 29 /keyfile/empty-string 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/limbo/.dirs/runtime 1123s ok 30 /keyfile/limbo 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/utf8/.dirs/runtime 1123s # Testing invalid encoding ‘non-UTF-8’ 1123s # Testing invalid encoding ‘UTF’ 1123s # Testing invalid encoding ‘UTF-9’ 1123s ok 31 /keyfile/utf8 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/roundtrip/.dirs/runtime 1123s ok 32 /keyfile/roundtrip 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/cache 1123s ok - glib/keyfile.test 1123s # Running test: glib/gdbus-introspection.test 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/bytes/.dirs/runtime 1123s ok 33 /keyfile/bytes 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/get-locale/.dirs/runtime 1123s ok 34 /keyfile/get-locale 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/free-when-not-last-ref/.dirs/runtime 1123s ok 35 /keyfile/free-when-not-last-ref 1123s # Start of locale-string tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_9CA0E3/keyfile/locale-string/multiple-loads/.dirs/runtime 1123s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1123s ok 36 /keyfile/locale-string/multiple-loads 1123s # End of locale-string tests 1123s # End of keyfile tests 1123s TAP version 14 1123s # random seed: R02S4fa7557f80272a6840903ebb076d40c2 1123s 1..4 1123s # Start of gdbus tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-parser/.dirs/runtime 1123s ok 1 /gdbus/introspection-parser 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-generate/.dirs/runtime 1123s ok 2 /gdbus/introspection-generate 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-default-direction/.dirs/runtime 1123s ok 3 /gdbus/introspection-default-direction 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/config 1123s ok - glib/gdbus-introspection.test 1123s # Running test: glib/testing-nonfatal.test 1123s ok - glib/testing-nonfatal.test 1123s # Running test: glib/reference.test 1123s ok - glib/reference.test 1123s # Running test: glib/cxx-14.test 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_26WZE3/gdbus/introspection-extra-data/.dirs/runtime 1123s ok 4 /gdbus/introspection-extra-data 1123s # End of gdbus tests 1123s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1123s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1123s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1123s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1123s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1123s TAP version 14 1123s # random seed: R02Sddbfeb21638b434e50e4dac8c598458f 1123s ** 1123s GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 1123s # GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 1123s TAP version 14 1123s # random seed: R02S37853cd7e94e4cafac696cc05d9caf48 1123s 1..29 1123s # Start of type tests 1123s ok 1 /type/fundamentals 1123s ok 2 /type/qdata 1123s ok 3 /type/query 1123s ok 4 /type/class-private 1123s # End of type tests 1123s # Start of object tests 1123s ok 5 /object/clear 1123s ok 6 /object/clear-function 1123s ok 7 /object/set 1123s ok 8 /object/set-function 1123s ok 9 /object/value 1123s ok 10 /object/initially-unowned 1123s ok 11 /object/weak-pointer 1123s ok 12 /object/weak-ref 1123s ok 13 /object/toggle-ref 1123s ok 14 /object/qdata 1123s ok 15 /object/qdata2 1123s # Start of set tests 1123s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1123s ok 16 /object/set/derived-type 1123s # End of set tests 1123s # Start of weak-pointer tests 1123s ok 17 /object/weak-pointer/clear 1123s ok 18 /object/weak-pointer/clear-function 1123s ok 19 /object/weak-pointer/set 1123s ok 20 /object/weak-pointer/set-function 1123s # End of weak-pointer tests 1123s # Start of weak-ref tests 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1123s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1123s ok 21 /object/weak-ref/on-dispose 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1123s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1123s ok 22 /object/weak-ref/on-run-dispose 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1123s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1123s ok 23 /object/weak-ref/on-toggle-notify 1123s ok 24 /object/weak-ref/in-toggle-notify 1123s ok 25 /object/weak-ref/many 1123s # Start of concurrent tests 1123s ok 26 /object/weak-ref/concurrent/0 1123s ok 27 /object/weak-ref/concurrent/1 1123s # End of concurrent tests 1123s # End of weak-ref tests 1123s # Start of toggle-ref tests 1123s ok 28 /object/toggle-ref/ref-on-dispose 1123s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1123s # End of toggle-ref tests 1123s # End of object tests 1123s TAP version 14 1123s # random seed: R02S469c908b78eeb6254d6ab1544a4a8e1f 1123s 1..2 1123s # Start of gtask tests 1123s ok - glib/cxx-14.test 1123s # Running test: glib/bookmarkfile.test 1123s # 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. 1123s ok 1 /gtask/name 1123s # Start of name tests 1123s # 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. 1123s ok 2 /gtask/name/macro-wrapper 1123s # End of name tests 1123s # End of gtask tests 1123s TAP version 14 1123s # random seed: R02S7e2e57a7458b46be829eb7e693e0b729 1123s 1..96 1123s # Start of bookmarks tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/load-from-data-dirs/.dirs/runtime 1123s ok 1 /bookmarks/load-from-data-dirs 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/to-file/.dirs/runtime 1123s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_2ZKME3/bookmarkfile-test-6BLME3.xbel 1123s # Roundtrip from a valid bookmark file 1123s ok 2 /bookmarks/to-file 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/move-item/.dirs/runtime 1123s ok 3 /bookmarks/move-item 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/corner-cases/.dirs/runtime 1123s ok 4 /bookmarks/corner-cases 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/misc/.dirs/runtime 1123s ok 5 /bookmarks/misc 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/deprecated/.dirs/runtime 1123s ok 6 /bookmarks/deprecated 1123s # Start of parse tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-20.xbel/.dirs/runtime 1123s ok 7 /bookmarks/parse/fail-20.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-34.xbel/.dirs/runtime 1123s ok 8 /bookmarks/parse/fail-34.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-05.xbel/.dirs/runtime 1123s ok 9 /bookmarks/parse/fail-05.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-09.xbel/.dirs/runtime 1123s ok 10 /bookmarks/parse/fail-09.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-02.xbel/.dirs/runtime 1123s ok 11 /bookmarks/parse/fail-02.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-25.xbel/.dirs/runtime 1123s ok 12 /bookmarks/parse/fail-25.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-35.xbel/.dirs/runtime 1123s ok 13 /bookmarks/parse/fail-35.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-27.xbel/.dirs/runtime 1123s ok 14 /bookmarks/parse/fail-27.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-16.xbel/.dirs/runtime 1123s ok 15 /bookmarks/parse/fail-16.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-13.xbel/.dirs/runtime 1123s ok 16 /bookmarks/parse/fail-13.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-18.xbel/.dirs/runtime 1123s ok 17 /bookmarks/parse/fail-18.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-33.xbel/.dirs/runtime 1123s ok 18 /bookmarks/parse/fail-33.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-37.xbel/.dirs/runtime 1123s ok 19 /bookmarks/parse/fail-37.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-21.xbel/.dirs/runtime 1123s ok 20 /bookmarks/parse/fail-21.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-17.xbel/.dirs/runtime 1123s ok 21 /bookmarks/parse/fail-17.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-39.xbel/.dirs/runtime 1123s ok 22 /bookmarks/parse/fail-39.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-42.xbel/.dirs/runtime 1123s ok 23 /bookmarks/parse/fail-42.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-04.xbel/.dirs/runtime 1123s ok 24 /bookmarks/parse/fail-04.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-15.xbel/.dirs/runtime 1123s ok 25 /bookmarks/parse/fail-15.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-32.xbel/.dirs/runtime 1123s ok 26 /bookmarks/parse/fail-32.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-29.xbel/.dirs/runtime 1123s ok 27 /bookmarks/parse/fail-29.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-01.xbel/.dirs/runtime 1123s ok 28 /bookmarks/parse/fail-01.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-31.xbel/.dirs/runtime 1123s ok 29 /bookmarks/parse/fail-31.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-02.xbel/.dirs/runtime 1123s ok 30 /bookmarks/parse/valid-02.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-41.xbel/.dirs/runtime 1123s ok 31 /bookmarks/parse/fail-41.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-28.xbel/.dirs/runtime 1123s ok 32 /bookmarks/parse/fail-28.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-01.xbel/.dirs/runtime 1123s ok 33 /bookmarks/parse/valid-01.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-26.xbel/.dirs/runtime 1123s ok 34 /bookmarks/parse/fail-26.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-03.xbel/.dirs/runtime 1123s ok 35 /bookmarks/parse/fail-03.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-11.xbel/.dirs/runtime 1123s ok 36 /bookmarks/parse/fail-11.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-19.xbel/.dirs/runtime 1123s ok 37 /bookmarks/parse/fail-19.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-22.xbel/.dirs/runtime 1123s ok 38 /bookmarks/parse/fail-22.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-07.xbel/.dirs/runtime 1123s ok 39 /bookmarks/parse/fail-07.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/valid-03.xbel/.dirs/runtime 1123s ok 40 /bookmarks/parse/valid-03.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-38.xbel/.dirs/runtime 1123s ok 41 /bookmarks/parse/fail-38.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-36.xbel/.dirs/runtime 1123s ok 42 /bookmarks/parse/fail-36.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-14.xbel/.dirs/runtime 1123s ok 43 /bookmarks/parse/fail-14.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-08.xbel/.dirs/runtime 1123s ok 44 /bookmarks/parse/fail-08.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-10.xbel/.dirs/runtime 1123s ok 45 /bookmarks/parse/fail-10.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-30.xbel/.dirs/runtime 1123s ok 46 /bookmarks/parse/fail-30.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-23.xbel/.dirs/runtime 1123s ok 47 /bookmarks/parse/fail-23.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-40.xbel/.dirs/runtime 1123s ok 48 /bookmarks/parse/fail-40.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-12.xbel/.dirs/runtime 1123s ok 49 /bookmarks/parse/fail-12.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-24.xbel/.dirs/runtime 1123s ok 50 /bookmarks/parse/fail-24.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/parse/fail-06.xbel/.dirs/runtime 1123s ok 51 /bookmarks/parse/fail-06.xbel 1123s # End of parse tests 1123s # Start of copy tests 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-20.xbel/.dirs/runtime 1123s ok 52 /bookmarks/copy/fail-20.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-34.xbel/.dirs/runtime 1123s ok 53 /bookmarks/copy/fail-34.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-05.xbel/.dirs/runtime 1123s ok 54 /bookmarks/copy/fail-05.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-09.xbel/.dirs/runtime 1123s ok 55 /bookmarks/copy/fail-09.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-02.xbel/.dirs/runtime 1123s ok 56 /bookmarks/copy/fail-02.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-25.xbel/.dirs/runtime 1123s ok 57 /bookmarks/copy/fail-25.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-35.xbel/.dirs/runtime 1123s ok 58 /bookmarks/copy/fail-35.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-27.xbel/.dirs/runtime 1123s ok 59 /bookmarks/copy/fail-27.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-16.xbel/.dirs/runtime 1123s ok 60 /bookmarks/copy/fail-16.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-13.xbel/.dirs/runtime 1123s ok 61 /bookmarks/copy/fail-13.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-18.xbel/.dirs/runtime 1123s ok 62 /bookmarks/copy/fail-18.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-33.xbel/.dirs/runtime 1123s ok 63 /bookmarks/copy/fail-33.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-37.xbel/.dirs/runtime 1123s ok 64 /bookmarks/copy/fail-37.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-21.xbel/.dirs/runtime 1123s ok 65 /bookmarks/copy/fail-21.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-17.xbel/.dirs/runtime 1123s ok 66 /bookmarks/copy/fail-17.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-39.xbel/.dirs/runtime 1123s ok 67 /bookmarks/copy/fail-39.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-42.xbel/.dirs/runtime 1123s ok 68 /bookmarks/copy/fail-42.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-04.xbel/.dirs/runtime 1123s ok 69 /bookmarks/copy/fail-04.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-15.xbel/.dirs/runtime 1123s ok 70 /bookmarks/copy/fail-15.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-32.xbel/.dirs/runtime 1123s ok 71 /bookmarks/copy/fail-32.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-29.xbel/.dirs/runtime 1123s ok 72 /bookmarks/copy/fail-29.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-01.xbel/.dirs/runtime 1123s ok 73 /bookmarks/copy/fail-01.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-31.xbel/.dirs/runtime 1123s ok 74 /bookmarks/copy/fail-31.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-02.xbel/.dirs/runtime 1123s ok 75 /bookmarks/copy/valid-02.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-41.xbel/.dirs/runtime 1123s ok 76 /bookmarks/copy/fail-41.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-28.xbel/.dirs/runtime 1123s ok 77 /bookmarks/copy/fail-28.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-01.xbel/.dirs/runtime 1123s ok 78 /bookmarks/copy/valid-01.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-26.xbel/.dirs/runtime 1123s ok 79 /bookmarks/copy/fail-26.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-03.xbel/.dirs/runtime 1123s ok 80 /bookmarks/copy/fail-03.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-11.xbel/.dirs/runtime 1123s ok 81 /bookmarks/copy/fail-11.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-19.xbel/.dirs/runtime 1123s ok 82 /bookmarks/copy/fail-19.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-22.xbel/.dirs/runtime 1123s ok 83 /bookmarks/copy/fail-22.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-07.xbel/.dirs/runtime 1123s ok 84 /bookmarks/copy/fail-07.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/valid-03.xbel/.dirs/runtime 1123s ok 85 /bookmarks/copy/valid-03.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-38.xbel/.dirs/runtime 1123s ok 86 /bookmarks/copy/fail-38.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-36.xbel/.dirs/runtime 1123s ok 87 /bookmarks/copy/fail-36.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-14.xbel/.dirs/runtime 1123s ok 88 /bookmarks/copy/fail-14.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-08.xbel/.dirs/runtime 1123s ok 89 /bookmarks/copy/fail-08.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-10.xbel/.dirs/runtime 1123s ok 90 /bookmarks/copy/fail-10.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-30.xbel/.dirs/runtime 1123s ok 91 /bookmarks/copy/fail-30.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-23.xbel/.dirs/runtime 1123s ok 92 /bookmarks/copy/fail-23.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-40.xbel/.dirs/runtime 1123s ok 93 /bookmarks/copy/fail-40.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-12.xbel/.dirs/runtime 1123s ok 94 /bookmarks/copy/fail-12.xbel 1123s ok - glib/bookmarkfile.test 1123s # Running test: glib/gsocketclient-slow.test 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-24.xbel/.dirs/runtime 1123s ok 95 /bookmarks/copy/fail-24.xbel 1123s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/home 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/cache 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/config 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/data 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/state 1123s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_2ZKME3/bookmarks/copy/fail-06.xbel/.dirs/runtime 1123s ok 96 /bookmarks/copy/fail-06.xbel 1123s # End of copy tests 1123s # End of bookmarks tests 1123s TAP version 14 1123s # random seed: R02S6b7fb71233ddf303db04160405382d28 1123s 1..4 1123s # Start of socket-client tests 1123s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1123s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1123s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc94060b018c0 and GSocketClientAsyncConnectData 0xc94060afc530 1123s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1123s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1123s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc94060b05560 for GSocketClientAsyncConnectData 0xc94060afc530 1123s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1123s # Executing: glib/gsocketclient-slow.test 1123s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1123s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1123s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1123s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1123s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1123s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc94060b05560 for GSocketClientAsyncConnectData 0xc94060afc530 1123s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1124s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1124s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1124s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1124s ok 1 /socket-client/connection-fail 1124s # slow test /socket-client/connection-fail executed in 1.20 secs 1124s # Start of happy-eyeballs tests 1124s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc94060b040f0 and GSocketClientAsyncConnectData 0xc94060b05090 1124s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1124s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1124s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc94060b08370 for GSocketClientAsyncConnectData 0xc94060b05090 1124s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1124s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1124s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1124s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1124s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1124s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1124s ok 2 /socket-client/happy-eyeballs/slow 1124s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1124s # Start of cancellation tests 1124s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc94060b04d70 and GSocketClientAsyncConnectData 0xc94060b08610 1124s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1124s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1124s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1124s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc94060b04010 and GSocketClientAsyncConnectData 0xc94060b08150 1124s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1124s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1124s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc94060b08bd0 for GSocketClientAsyncConnectData 0xc94060b08150 1124s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1125s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1125s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1125s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1125s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1125s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1125s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1125s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1125s # End of cancellation tests 1125s # End of happy-eyeballs tests 1125s # End of socket-client tests 1125s ok - glib/gsocketclient-slow.test 1125s # Running test: glib/objects-refcount1.test 1125s TAP version 14 1125s # random seed: R02Sc3ffaa55406c83eae32343d2115e972e 1125s 1..1 1125s # Start of gobject tests 1125s # Start of refcount tests 1125s # init 0xac8ee65bcd90 1125s # 1125s # init 0xac8ee65bcea0 1125s # 1128s # Executing: glib/objects-refcount1.test 1130s # dispose 0xac8ee65bcd90! 1130s # 1130s # dispose 0xac8ee65bcea0! 1130s # 1130s ok 1 /gobject/refcount/object-basics 1130s ok - glib/objects-refcount1.test 1130s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1130s # End of refcount tests 1130s # End of gobject tests 1130s # Running test: glib/throws.test 1130s TAP version 14 1130s # random seed: R02S1e22aba095036b6e47174079f27f6c25 1130s 1..3 1130s # Start of throws tests 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_JCDOE3/throws/invoke-gerror/.dirs/runtime 1130s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1130s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1130s ok - glib/throws.test 1130s # Running test: glib/buffered-input-stream.test 1130s ok - glib/buffered-input-stream.test 1130s # Running test: glib/messages-low-memory.py.test 1130s ok 1 /throws/invoke-gerror 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_JCDOE3/throws/vfunc-can-throw-gerror/.dirs/runtime 1130s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1130s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1130s ok 2 /throws/vfunc-can-throw-gerror 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_JCDOE3/throws/callback-can-throw-gerror/.dirs/runtime 1130s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1130s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1130s ok 3 /throws/callback-can-throw-gerror 1130s # End of throws tests 1130s TAP version 14 1130s # random seed: R02S10b0b641496908b88d5308fa6883354a 1130s 1..10 1130s # Start of buffered-input-stream tests 1130s ok 1 /buffered-input-stream/peek 1130s ok 2 /buffered-input-stream/peek-buffer 1130s ok 3 /buffered-input-stream/set-buffer-size 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1130s ok 4 /buffered-input-stream/read-byte 1130s ok 5 /buffered-input-stream/read 1130s ok 6 /buffered-input-stream/read-async 1130s ok 7 /buffered-input-stream/skip 1130s ok 8 /buffered-input-stream/skip-async 1130s ok 9 /buffered-input-stream/seek 1130s # End of buffered-input-stream tests 1130s # Start of filter-input-stream tests 1130s ok 10 /filter-input-stream/close 1130s # End of filter-input-stream tests 1130s TAP version 13 1130s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1130s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1130s # tmpdir: /tmp/tmp3o03oz4t 1130s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1130s # Return code: -6 1130s # Output: 1130s # 1130s # Error: 1130s # GLib-Message: 17:43:53.519: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1130s # GLib-Message: 17:43:53.519: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1130s # ../../../glib/gprintf.c:351: failed to allocate memory 1130s 1..1 1130s ok - glib/messages-low-memory.py.test 1130s # Running test: glib/strfuncs.test 1130s TAP version 14 1130s # random seed: R02S87971a0b1fe2ec2b3fce213102ce17c7 1130s 1..51 1130s # Start of strfuncs tests 1130s ok 1 /strfuncs/ascii-strcasecmp 1130s ok 2 /strfuncs/ascii_strdown 1130s ok 3 /strfuncs/ascii_strdup 1130s ok 4 /strfuncs/ascii_strtod 1130s ok 5 /strfuncs/bounds-check 1130s ok 6 /strfuncs/has-prefix 1130s ok 7 /strfuncs/has-prefix-macro 1130s ok 8 /strfuncs/has-suffix 1130s ok 9 /strfuncs/has-suffix-macro 1130s ok 10 /strfuncs/memdup 1130s ok 11 /strfuncs/memdup2 1130s ok 12 /strfuncs/set_str 1130s ok 13 /strfuncs/stpcpy 1130s ok 14 /strfuncs/str_match_string 1130s ok 15 /strfuncs/str_tokenize_and_fold 1130s ok 16 /strfuncs/strcanon 1130s ok 17 /strfuncs/strchomp 1130s ok 18 /strfuncs/strchug 1130s ok 19 /strfuncs/strcompress-strescape 1130s ok 20 /strfuncs/strconcat 1130s ok 21 /strfuncs/strdelimit 1130s ok 22 /strfuncs/strdup 1130s ok 23 /strfuncs/strdup-printf 1130s ok 24 /strfuncs/strdupv 1130s ok 25 /strfuncs/strerror 1130s ok 26 /strfuncs/strip-context 1130s ok 27 /strfuncs/strjoin 1130s ok 28 /strfuncs/strjoinv 1130s ok 29 /strfuncs/strlcat 1130s ok 30 /strfuncs/strlcpy 1130s ok 31 /strfuncs/strncasecmp 1130s ok 32 /strfuncs/strndup 1130s ok 33 /strfuncs/strnfill 1130s ok 34 /strfuncs/strreverse 1130s ok 35 /strfuncs/strsignal 1130s ok 36 /strfuncs/strsplit 1130s ok 37 /strfuncs/strsplit-set 1130s ok 38 /strfuncs/strstr 1130s ok 39 /strfuncs/strtod 1130s ok 40 /strfuncs/strtoull-strtoll 1130s ok 41 /strfuncs/strup 1130s ok 42 /strfuncs/strv-contains 1130s ok 43 /strfuncs/strv-equal 1130s ok 44 /strfuncs/strv-length 1130s ok 45 /strfuncs/test-is-to-digit 1130s ok 46 /strfuncs/transliteration 1130s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1130s ok 47 /strfuncs/str-equal 1130s ok 48 /strfuncs/str-is-ascii 1130s # Start of ascii-string-to-num tests 1130s ok 49 /strfuncs/ascii-string-to-num/pathological 1130s ok 50 /strfuncs/ascii-string-to-num/usual 1130s # End of ascii-string-to-num tests 1130s # Start of strdup tests 1130s ok 51 /strfuncs/strdup/inline 1130s # End of strdup tests 1130s # End of strfuncs tests 1130s ok - glib/strfuncs.test 1130s # Running test: glib/volumemonitor.test 1130s TAP version 14 1130s # random seed: R02S2dc5d2986a5582c00d8a8ecfcb84e654 1130s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1130s 1..3 1130s # Start of volumemonitor tests 1130s ok - glib/volumemonitor.test 1130s # Running test: glib/spawn-singlethread.test 1130s ok 1 /volumemonitor/connected_drives 1130s ok 2 /volumemonitor/volumes 1130s ok 3 /volumemonitor/mounts 1130s # End of volumemonitor tests 1130s TAP version 14 1130s # random seed: R02S7293634ce7f7f27ba0f2b3526ea43ebb 1130s 1..9 1130s # Start of gthread tests 1130s ok 1 /gthread/spawn-single-sync 1130s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1130s ok 2 /gthread/spawn-stderr-socket 1130s ok 3 /gthread/spawn-single-async 1130s # thread 1 1130s # thread 1 1130s ok 4 /gthread/spawn-single-async-with-fds 1130s ok 5 /gthread/spawn-async-with-invalid-fds 1130s ok 6 /gthread/spawn-script 1130s ok 7 /gthread/spawn-posix-spawn 1130s # Start of spawn tests 1130s ok 8 /gthread/spawn/nonexistent 1130s # FD map: 1130s # • 5 → 15 1130s # • 6 → 16 1130s # • 7 → 17 1130s # • 8 → 18 1130s # • 9 → 19 1130s # • 10 → 20 1130s # • 11 → 21 1130s # • 12 → 22 1130s # • 13 → 23 1130s # • 3 → 13 1130s ok - glib/spawn-singlethread.test 1130s # Running test: glib/type-flags.test 1130s ok - glib/type-flags.test 1130s # Running test: glib/base64.test 1130s ok 9 /gthread/spawn/fd-assignment-clash 1130s # End of spawn tests 1130s # End of gthread tests 1130s TAP version 14 1130s # random seed: R02S778ba0aeecb6d007fad153aa0b6d8c8a 1130s 1..4 1130s # Start of type tests 1130s # Start of flags tests 1130s ok 1 /type/flags/interface 1130s ok 2 /type/flags/final 1130s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1130s ok 3 /type/flags/deprecated 1130s # Start of final tests 1130s ok 4 /type/flags/final/instance-check 1130s # End of final tests 1130s # End of flags tests 1130s # End of type tests 1130s TAP version 14 1130s # random seed: R02S5c4cc471c315bd26528767cec38faee9 1130s 1..28 1130s # Start of base64 tests 1130s ok 1 /base64/encode 1130s ok 2 /base64/decode 1130s ok 3 /base64/decode-inplace 1130s ok 4 /base64/encode-decode 1130s # Start of full tests 1130s ok 5 /base64/full/1 1130s ok 6 /base64/full/2 1130s ok 7 /base64/full/3 1130s ok 8 /base64/full/4 1130s # End of full tests 1130s # Start of encode tests 1130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1130s ok 9 /base64/encode/empty 1130s # Start of incremental tests 1130s # Start of small-block tests 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1130s ok 10 /base64/encode/incremental/small-block/1 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1130s ok 11 /base64/encode/incremental/small-block/2 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1130s ok 12 /base64/encode/incremental/small-block/3 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1130s ok 13 /base64/encode/incremental/small-block/4 1130s # End of small-block tests 1130s # End of incremental tests 1130s # End of encode tests 1130s # Start of incremental tests 1130s # Start of nobreak tests 1130s ok 14 /base64/incremental/nobreak/1 1130s ok 15 /base64/incremental/nobreak/2 1130s ok 16 /base64/incremental/nobreak/3 1130s ok 17 /base64/incremental/nobreak/4-a 1130s ok 18 /base64/incremental/nobreak/4-b 1130s ok 19 /base64/incremental/nobreak/4-c 1130s # End of nobreak tests 1130s # Start of break tests 1130s ok 20 /base64/incremental/break/1 1130s ok 21 /base64/incremental/break/2 1130s ok 22 /base64/incremental/break/3 1130s # End of break tests 1130s # Start of smallblock tests 1130s ok 23 /base64/incremental/smallblock/1 1130s ok 24 /base64/incremental/smallblock/2 1130s ok 25 /base64/incremental/smallblock/3 1130s ok 26 /base64/incremental/smallblock/4 1130s # End of smallblock tests 1130s # End of incremental tests 1130s # Start of decode tests 1130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1130s ok 27 /base64/decode/empty 1130s # End of decode tests 1130s # Start of encode-decode tests 1130s # Vector 0: 1130s # Vector 1: f 1130s # Vector 2: fo 1130s # Vector 3: foo 1130s # Vector 4: foob 1130s # Vector 5: fooba 1130s # Vector 6: foobar 1130s ok 28 /base64/encode-decode/rfc4648 1130s # End of encode-decode tests 1130s # End of base64 tests 1130s ok - glib/base64.test 1130s # Running test: glib/gdbus-exit-on-close.test 1130s TAP version 14 1130s # random seed: R02Sbc7d78d9928a72e6e94a57b79fbdc57d 1130s 1..4 1130s # Start of gdbus tests 1130s # Start of exit-on-close tests 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/default/.dirs/runtime 1130s ok 1 /gdbus/exit-on-close/default 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/true/.dirs/runtime 1130s ok 2 /gdbus/exit-on-close/true 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/false/.dirs/runtime 1130s ok 3 /gdbus/exit-on-close/false 1130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/home 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/cache 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/system-config2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/config 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/system-data2 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/data 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/state 1130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_74EWE3/gdbus/exit-on-close/we-close/.dirs/runtime 1130s ok 4 /gdbus/exit-on-close/we-close 1130s # Start of default tests 1130s # End of default tests 1130s # Start of true tests 1130s # End of true tests 1130s # Start of false tests 1130s # End of false tests 1130s # Start of we-close tests 1130s # End of we-close tests 1130s # End of exit-on-close tests 1130s # End of gdbus tests 1130s ok - glib/gdbus-exit-on-close.test 1130s # Running test: glib/binding.test 1130s TAP version 14 1130s # random seed: R02Sa5104c49f7d91dd8598e86ba0589d713 1130s 1..19 1130s # Start of binding tests 1130s ok 1 /binding/default 1130s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1130s ok 2 /binding/canonicalisation 1130s ok 3 /binding/bidirectional 1130s ok 4 /binding/transform 1130s ok 5 /binding/transform-default 1130s ok 6 /binding/transform-closure 1130s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1130s ok 7 /binding/chain 1130s ok 8 /binding/sync-create 1130s ok 9 /binding/invert-boolean 1130s ok 10 /binding/same-object 1130s ok 11 /binding/unbind 1130s ok 12 /binding/unbind-weak 1130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1130s ok 13 /binding/unbind-multiple 1130s ok 14 /binding/fail 1130s ok 15 /binding/interface 1130s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1130s ok 16 /binding/concurrent-unbind 1130s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1131s ok 17 /binding/concurrent-finalizing 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1131s ok 18 /binding/dispose-source 1131s ok - glib/binding.test 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1131s ok 19 /binding/dispose-target 1131s # End of binding tests 1131s # Running test: glib/union-info.test 1131s TAP version 14 1131s # random seed: R02Sc48891bb3810f45750c80f6f8fafa739 1131s 1..2 1131s # Start of union-info tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_GF8YE3/union-info/basic/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_GF8YE3/union-info/basic/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_GF8YE3/union-info/basic/.dirs/runtime 1131s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1131s # /union-info/basic summary: Test basic properties of GIUnionInfo 1131s ok 1 /union-info/basic 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_GF8YE3/union-info/methods/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_GF8YE3/union-info/methods/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_GF8YE3/union-info/methods/.dirs/runtime 1131s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1131s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1131s ok 2 /union-info/methods 1131s # End of union-info tests 1131s ok - glib/union-info.test 1131s # Running test: glib/performance.test 1133s # Executing: glib/performance.test 1137s simple-construction: Millions of constructed objects per second: 17.705 1138s # Executing: glib/performance.test 1140s simple-construction1: Millions of constructed objects per second: 75.059 1143s complex-construction: Millions of constructed objects per second: 5.729 1143s # Executing: glib/performance.test 1147s complex-construction1: Millions of constructed objects per second: 10.150 1148s # Executing: glib/performance.test 1153s complex-construction2: Millions of constructed objects per second: 13.245 1153s # Executing: glib/performance.test 1154s finalization: Millions of finalized objects per second: 3.655 1156s type-check: Million type checks per second: 106.19 1156s emit-unhandled: Emissions per second: 4356919 1158s emit-unhandled-empty: Emissions per second: 23170057 1158s # Executing: glib/performance.test 1159s emit-unhandled-generic: Emissions per second: 5568301 1160s emit-unhandled-generic-empty: Emissions per second: 23357821 1161s emit-unhandled-args: Emissions per second: 3878378 1162s emit-handled: Emissions per second: 3089131 1163s # Executing: glib/performance.test 1164s emit-handled-empty: Emissions per second: 3177260 1165s emit-handled-generic: Emissions per second: 3153451 1166s emit-handled-generic-empty: Emissions per second: 5027524 1167s emit-handled-args: Emissions per second: 2839333 1168s # Executing: glib/performance.test 1168s notify-unhandled: Notify (unhandled) per second: 26476257 1170s notify-by-pspec-unhandled: Notify (unhandled) per second: 102153094 1171s notify-handled: Notify per second: 1939121 1172s notify-by-pspec-handled: Notify per second: 2057103 1173s # Executing: glib/performance.test 1173s property-set: Property set per second: 13295927 1174s property-set-signaled: Property set per second: 3968090 1176s property-get: Property get per second: 13940488 1177s refcount: Million refs+unref per second: 25.90 1178s # Executing: glib/performance.test 1178s refcount-1: Million refs+unref per second: 76.31 1179s refcount-toggle: Million refs+unref per second: 60.44 1179s ok - glib/performance.test 1179s # Running test: glib/memory-monitor-psi.test 1179s TAP version 14 1179s # random seed: R02S6b3a4f72afb1f6b98006b9adb1eeb5b6 1179s 1..1 1179s # Start of memory-monitor-psi tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_13XTE3/memory-monitor-psi/receive-signal/.dirs/runtime 1179s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 1179s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 1179s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 1179s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1179s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1179s ok 1 /memory-monitor-psi/receive-signal 1179s # End of memory-monitor-psi tests 1179s ok - glib/memory-monitor-psi.test 1179s # Running test: glib/portal-support-flatpak-gsettings-only.test 1179s ok - glib/portal-support-flatpak-gsettings-only.test 1179s # Running test: glib/type.test 1179s TAP version 14 1179s # random seed: R02S9e9045c1c070833d9f7f5b86ed94c6f5 1179s 1..1 1179s # Start of portal-support tests 1179s # Start of flatpak tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/runtime 1179s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_Z5VTE3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1179s ok 1 /portal-support/flatpak/gsettings 1179s # End of flatpak tests 1179s # End of portal-support tests 1179s ok - glib/type.test 1179s # Running test: glib/macros.test 1179s ok - glib/macros.test 1179s # Running test: glib/g-file-info.test 1179s ok - glib/g-file-info.test 1179s # Running test: glib/sandbox.test 1179s TAP version 14 1179s # random seed: R02S72c8674cecd128bf5fe1037ab208b010 1179s 1..6 1179s # Start of type tests 1179s ok 1 /type/registration-serial 1179s ok 2 /type/interface-prerequisite 1179s ok 3 /type/interface-check 1179s ok 4 /type/next-base 1179s ok 5 /type/is-a 1179s # Invalid types can’t be queried. 1179s # Unclassed types can’t be queried. 1179s ok 6 /type/query 1179s # End of type tests 1179s TAP version 14 1179s # random seed: R02S9669ba6e16b70697bb7f9039a2f11290 1179s 1..3 1179s # Start of alignof tests 1179s ok 1 /alignof/fallback 1179s # End of alignof tests 1179s # Start of assert tests 1179s ok 2 /assert/static 1179s # End of assert tests 1179s # Start of struct tests 1179s ok 3 /struct/sizeof_member 1179s # End of struct tests 1179s TAP version 14 1179s # random seed: R02S0c841ba2e980c0b3692fe259e034d0cc 1179s 1..6 1179s # Start of g-file-info tests 1179s ok 1 /g-file-info/test_g_file_info 1179s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1179s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1179s ok 2 /g-file-info/xattrs 1179s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1179s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1179s ok 3 /g-file-info/set-modified-date-time-precision 1179s # Start of test_g_file_info tests 1179s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1179s ok 4 /g-file-info/test_g_file_info/modification-time 1179s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1179s ok 5 /g-file-info/test_g_file_info/access-time 1179s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1179s ok 6 /g-file-info/test_g_file_info/creation-time 1179s # End of test_g_file_info tests 1179s # End of g-file-info tests 1179s TAP version 14 1179s # random seed: R02S64eefc6c4a76069a10b75b2b97dacb39 1179s 1..4 1179s # Start of sandbox tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_CHOTE3/sandbox/none/.dirs/runtime 1179s ok 1 /sandbox/none 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_CHOTE3/sandbox/snap/.dirs/runtime 1179s # Created snap.yaml in /tmp/test_sandbox_CHOTE3/snap/current/meta/snap.yaml 1179s ok - glib/sandbox.test 1179s # Running test: glib/thread-deprecated.test 1179s ok 2 /sandbox/snap 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_CHOTE3/sandbox/classic-snap/.dirs/runtime 1179s # Created snap.yaml in /tmp/test_sandbox_CHOTE3/snap/current/meta/snap.yaml 1179s ok 3 /sandbox/classic-snap 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/runtime 1179s # Creating .flatpak-info in /tmp/test_sandbox_CHOTE3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1179s ok 4 /sandbox/flatpak 1179s # End of sandbox tests 1179s TAP version 14 1179s # random seed: R02S1f76220373a4b75ad5f9c1632ef6c293 1179s 1..6 1179s # Start of thread tests 1179s ok 1 /thread/mutex 1180s ok 2 /thread/static-rec-mutex 1183s # Executing: glib/thread-deprecated.test 1184s ok 3 /thread/static-private 1184s # slow test /thread/static-private executed in 4.40 secs 1188s # Executing: glib/thread-deprecated.test 1189s ok 4 /thread/static-rw-lock 1189s # slow test /thread/static-rw-lock executed in 5.00 secs 1189s ok 5 /thread/once 1193s # Executing: glib/thread-deprecated.test 1198s # Executing: glib/thread-deprecated.test 1199s ok - glib/thread-deprecated.test 1199s ok 6 /thread/rerun-all 1199s # slow test /thread/rerun-all executed in 10.02 secs 1199s # End of thread tests 1199s # Running test: glib/gdbus-auth.test 1199s TAP version 14 1199s # random seed: R02Sca23860860dc0b56a793ddf1acf63b02 1199s 1..5 1199s # Start of gdbus tests 1199s # Start of auth tests 1199s # Start of client tests 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1199s ok 1 /gdbus/auth/client/EXTERNAL 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1199s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1199s # End of client tests 1199s # Start of server tests 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1199s ok 3 /gdbus/auth/server/ANONYMOUS 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1199s ok 4 /gdbus/auth/server/EXTERNAL 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_AJH3E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1199s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1199s # End of server tests 1199s # End of auth tests 1199s # End of gdbus tests 1199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1199s TAP version 14 1199s # random seed: R02S45f046e6f2753e6dc3b7a88b40f088d5 1199s 1..2 1199s # Start of gtask tests 1199s ok - glib/gdbus-auth.test 1199s # Running test: glib/cxx-11.test 1199s ok - glib/cxx-11.test 1199s # Running test: glib/file.test 1199s # 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. 1199s ok 1 /gtask/name 1199s # Start of name tests 1199s # 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. 1199s ok 2 /gtask/name/macro-wrapper 1199s # End of name tests 1199s # End of gtask tests 1199s TAP version 14 1199s # random seed: R02S9e9321a26f69cfcaf9ac3833a47d3ed0 1199s 1..55 1199s # Start of file tests 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/basic/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/basic/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/basic/.dirs/system-config1:/tmp/test_file_O3V2E3/file/basic/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/basic/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/basic/.dirs/system-data1:/tmp/test_file_O3V2E3/file/basic/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/basic/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/basic/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/basic/.dirs/runtime 1199s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1199s ok 1 /file/basic 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/build-filename/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/build-filename/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/build-filename/.dirs/system-config1:/tmp/test_file_O3V2E3/file/build-filename/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/build-filename/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/build-filename/.dirs/system-data1:/tmp/test_file_O3V2E3/file/build-filename/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/build-filename/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/build-filename/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/build-filename/.dirs/runtime 1199s ok 2 /file/build-filename 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_O3V2E3/file/build-filenamev/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_O3V2E3/file/build-filenamev/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/build-filenamev/.dirs/runtime 1199s ok 3 /file/build-filenamev 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/parent/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/parent/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/parent/.dirs/system-config1:/tmp/test_file_O3V2E3/file/parent/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/parent/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/parent/.dirs/system-data1:/tmp/test_file_O3V2E3/file/parent/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/parent/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/parent/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/parent/.dirs/runtime 1199s ok 4 /file/parent 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/child/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/child/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/child/.dirs/system-config1:/tmp/test_file_O3V2E3/file/child/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/child/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/child/.dirs/system-data1:/tmp/test_file_O3V2E3/file/child/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/child/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/child/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/child/.dirs/runtime 1199s ok 5 /file/child 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/empty-path/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/empty-path/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/empty-path/.dirs/system-config1:/tmp/test_file_O3V2E3/file/empty-path/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/empty-path/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/empty-path/.dirs/system-data1:/tmp/test_file_O3V2E3/file/empty-path/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/empty-path/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/empty-path/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/empty-path/.dirs/runtime 1199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1199s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1199s ok 6 /file/empty-path 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/type/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/type/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/type/.dirs/system-config1:/tmp/test_file_O3V2E3/file/type/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/type/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/type/.dirs/system-data1:/tmp/test_file_O3V2E3/file/type/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/type/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/type/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/type/.dirs/runtime 1199s ok 7 /file/type 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/parse-name/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/parse-name/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/parse-name/.dirs/system-config1:/tmp/test_file_O3V2E3/file/parse-name/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/parse-name/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/parse-name/.dirs/system-data1:/tmp/test_file_O3V2E3/file/parse-name/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/parse-name/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/parse-name/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/parse-name/.dirs/runtime 1199s ok 8 /file/parse-name 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace-load/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace-load/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace-load/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace-load/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace-load/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace-load/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace-load/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace-load/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace-load/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace-load/.dirs/runtime 1199s ok 9 /file/replace-load 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace-cancel/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace-cancel/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace-cancel/.dirs/runtime 1199s # Bug Reference: https://bugzilla.gnome.org/629301 1199s ok 10 /file/replace-cancel 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace-symlink/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace-symlink/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace-symlink/.dirs/runtime 1199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1199s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1199s # Using temporary directory /tmp/test_file_O3V2E3/g_file_replace_symlink_SQA2E3 1199s ok 11 /file/replace-symlink 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-new-tmp/.dirs/runtime 1199s ok 12 /file/async-new-tmp 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-new-tmp-dir/.dirs/runtime 1199s ok 13 /file/async-new-tmp-dir 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-delete/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-delete/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-delete/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-delete/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-delete/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-delete/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-delete/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-delete/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-delete/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-delete/.dirs/runtime 1199s ok 14 /file/async-delete 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-make-symlink/.dirs/runtime 1199s ok 15 /file/async-make-symlink 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/copy-preserve-mode/.dirs/runtime 1199s # Current umask: 2 1199s # Vector 0 1199s # Vector 1 1199s # Vector 2 1199s # Vector 3 1199s # Vector 4 1199s # Vector 5 1199s # Vector 6 1199s # Vector 7 1199s # Vector 8 1199s # Vector 9 1199s # Vector 10 1199s ok 16 /file/copy-preserve-mode 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/copy-async-with-closures/.dirs/runtime 1199s ok 17 /file/copy-async-with-closures 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/measure/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/measure/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/measure/.dirs/system-config1:/tmp/test_file_O3V2E3/file/measure/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/measure/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/measure/.dirs/system-data1:/tmp/test_file_O3V2E3/file/measure/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/measure/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/measure/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/measure/.dirs/runtime 1199s ok 18 /file/measure 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/measure-async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/measure-async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/measure-async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/measure-async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/measure-async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/measure-async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/measure-async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/measure-async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/measure-async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/measure-async/.dirs/runtime 1199s ok 19 /file/measure-async 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/system-config1:/tmp/test_file_O3V2E3/file/load-bytes/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/system-data1:/tmp/test_file_O3V2E3/file/load-bytes/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/load-bytes/.dirs/runtime 1199s ok 20 /file/load-bytes 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/load-bytes-async/.dirs/runtime 1199s ok 21 /file/load-bytes-async 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/load-bytes-4gb/.dirs/runtime 1199s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/load-contents-4gb/.dirs/runtime 1199s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/load-contents-4gb-async/.dirs/runtime 1199s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/.dirs/runtime 1199s ok 25 /file/writev 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/build-attribute-list-for-copy/.dirs/runtime 1199s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1199s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1199s # 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::* 1199s # 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::* 1199s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1199s # Attributes for copy: standard::size,xattr::* 1199s # Attributes for copy: standard::size,unix::mode,xattr::* 1199s ok 26 /file/build-attribute-list-for-copy 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/move_async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/move_async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/move_async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/move_async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/move_async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/move_async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/move_async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/move_async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/move_async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/move_async/.dirs/runtime 1199s ok 27 /file/move_async 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/move-async-with-closures/.dirs/runtime 1199s ok 28 /file/move-async-with-closures 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/query-zero-length-content-type/.dirs/runtime 1199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1199s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1199s ok 29 /file/query-zero-length-content-type 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/runtime 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/data/applications 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/config 1199s ok 30 /file/query-default-handler-file 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/runtime 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/data/applications 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config 1199s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O3V2E3/file/query-default-handler-file/.dirs/config to /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config 1199s ok 31 /file/query-default-handler-file-async 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/runtime 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/data/applications 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config 1199s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O3V2E3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config 1199s ok 32 /file/query-default-handler-uri 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/runtime 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/data/applications 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/config 1199s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O3V2E3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/config 1199s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O3V2E3/file/query-default-handler-uri-async/.dirs/config 1199s ok 33 /file/query-default-handler-uri-async 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/enumerator-cancellation/.dirs/runtime 1199s ok 34 /file/enumerator-cancellation 1199s # Start of async-create-delete tests 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-create-delete/0/.dirs/runtime 1199s ok 35 /file/async-create-delete/0 1199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/home 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/cache 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/system-config2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/config 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/system-data2 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/data 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/state 1199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-create-delete/1/.dirs/runtime 1200s ok 36 /file/async-create-delete/1 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-create-delete/10/.dirs/runtime 1200s ok 37 /file/async-create-delete/10 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-create-delete/25/.dirs/runtime 1200s ok 38 /file/async-create-delete/25 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/async-create-delete/4096/.dirs/runtime 1200s ok 39 /file/async-create-delete/4096 1200s # End of async-create-delete tests 1200s # Start of replace-symlink tests 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace-symlink/using-etag/.dirs/runtime 1200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1200s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1200s # Using temporary directory /tmp/test_file_O3V2E3/g_file_replace_symlink_using_etag_892HE3 1202s ok 40 /file/replace-symlink/using-etag 1202s # slow test /file/replace-symlink/using-etag executed in 2.01 secs 1202s # End of replace-symlink tests 1202s # Start of replace tests 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace/write-only/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace/write-only/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace/write-only/.dirs/runtime 1202s # /file/replace/write-only summary: Test various situations for g_file_replace() 1202s # Current umask: 2 1202s # Test 0, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_TLOHE3 1202s # Test 1, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_B0NHE3 1202s # Test 2, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_WPKHE3 1202s # Test 3, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_9PUHE3 1202s # Test 4, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_3WUHE3 1202s # Test 5, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_MBUHE3 1202s # Test 6, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_PKRHE3 1202s # Test 7, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_E5RHE3 1202s # Test 8, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_IAAHE3 1202s # Test 9, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_AN9GE3 1202s # Test 10, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_HL6GE3 1202s # Test 11, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_8HGHE3 1202s # Test 12, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_3OGHE3 1202s # Test 13, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_U1FHE3 1202s # Test 14, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_WZDHE3 1202s # Test 15, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_LS5RE3 1202s # Test 16, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_8P7RE3 1202s # Test 17, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_PH4RE3 1202s # Test 18, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_WTCSE3 1202s # Test 19, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_R49RE3 1202s # Test 20, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_06SRE3 1202s # Test 21, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_95PRE3 1202s # Test 22, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_1OQRE3 1202s # Test 23, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_VVQRE3 1202s # Test 24, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_5S0RE3 1202s # Test 25, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_4BWRE3 1202s # Test 26, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_CBXRE3 1202s # Test 27, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_1JXRE3 1202s # Test 28, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_VLGRE3 1202s # Test 29, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_Z7CRE3 1202s # Test 30, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_6FDRE3 1202s # Test 31, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_0BERE3 1202s # Test 32, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_H3ERE3 1202s # Test 33, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ISORE3 1202s # Test 34, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_W9NRE3 1202s # Test 35, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_WFORE3 1202s # Test 36, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_LLKRE3 1202s # Test 37, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_NJ4QE3 1202s # Test 38, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_AP0QE3 1202s # Test 39, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_NC3QE3 1202s # Test 40, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_PBCRE3 1202s # Test 41, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_OT8QE3 1202s # Test 42, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_BURQE3 1202s # Test 43, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_8EPQE3 1202s # Test 44, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_HUYQE3 1202s # Test 45, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_Z9XQE3 1202s # Test 46, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_SB0QE3 1202s # Test 47, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_FH0QE3 1202s # Test 48, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_83VQE3 1202s # We do not have CAP_DAC_OVERRIDE or equivalent 1202s ok 41 /file/replace/write-only 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_O3V2E3/file/replace/read-write/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_O3V2E3/file/replace/read-write/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/replace/read-write/.dirs/runtime 1202s # /file/replace/read-write summary: Test various situations for g_file_replace() 1202s # Current umask: 2 1202s # Test 0, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_N8WQE3 1202s # Test 1, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_EMWQE3 1202s # Test 2, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_4BHQE3 1202s # Test 3, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_14CQE3 1202s # Test 4, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_93DQE3 1202s # Test 5, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_S9DQE3 1202s # Test 6, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ZMNQE3 1202s # Test 7, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_DFJQE3 1202s # Test 8, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_4FKQE3 1202s # Test 9, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_DLKQE3 1202s # Test 10, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_8N3PE3 1202s # Test 11, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_0MYPE3 1202s # Test 12, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_AWYPE3 1202s # Test 13, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_UUZPE3 1202s # Test 14, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_CT8PE3 1202s # Test 15, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_9MAQE3 1202s # Test 16, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_TH7PE3 1202s # Test 17, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_OSRPE3 1202s # Test 18, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_LJNPE3 1202s # Test 19, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_EOVPE3 1202s # Test 20, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_I8XPE3 1202s # Test 21, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_SEVPE3 1202s # Test 22, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ONFPE3 1202s # Test 23, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_H2EPE3 1202s # Test 24, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_YGCPE3 1202s # Test 25, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ZNJPE3 1202s # Test 26, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_SUJPE3 1202s # Test 27, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ZUKPE3 1202s # Test 28, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_P4GPE3 1202s # Test 29, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_H3ZOE3 1202s # Test 30, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_450OE3 1202s # Test 31, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_V80OE3 1202s # Test 32, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_MXXOE3 1202s # Test 33, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_YI6OE3 1202s # Test 34, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_7I7OE3 1202s # Test 35, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_716OE3 1202s # Test 36, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_KZ3OE3 1202s # Test 37, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_NM5OE3 1202s # Test 38, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_TTKOE3 1202s # Test 39, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_B7TOE3 1202s # Test 40, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_C2VOE3 1202s # Test 41, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_F9ROE3 1202s # Test 42, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ZEBOE3 1202s # Test 43, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_19COE3 1202s # Test 44, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_3FAOE3 1202s # Test 45, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_ZJAOE3 1202s # Test 46, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_N3JOE3 1202s # Test 47, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_KGJOE3 1202s # Test 48, using temporary directory /tmp/test_file_O3V2E3/g_file_replace_EWGOE3 1202s # We do not have CAP_DAC_OVERRIDE or equivalent 1202s ok 42 /file/replace/read-write 1202s # End of replace tests 1202s # Start of copy tests 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/system-config1:/tmp/test_file_O3V2E3/file/copy/progress/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/system-data1:/tmp/test_file_O3V2E3/file/copy/progress/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/copy/progress/.dirs/runtime 1202s ok 43 /file/copy/progress 1202s # End of copy tests 1202s # Start of writev tests 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/no-bytes-written/.dirs/runtime 1202s ok 44 /file/writev/no-bytes-written 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/no-vectors/.dirs/runtime 1202s ok 45 /file/writev/no-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/empty-vectors/.dirs/runtime 1202s ok 46 /file/writev/empty-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/too-big-vectors/.dirs/runtime 1202s ok 47 /file/writev/too-big-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async/.dirs/runtime 1202s ok 48 /file/writev/async 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async_all/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async_all/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async_all/.dirs/runtime 1202s ok 49 /file/writev/async_all 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async_all-empty-vectors/.dirs/runtime 1202s ok 50 /file/writev/async_all-empty-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async_all-no-vectors/.dirs/runtime 1202s ok 51 /file/writev/async_all-no-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async_all-to-big-vectors/.dirs/runtime 1202s ok 52 /file/writev/async_all-to-big-vectors 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/writev/async_all-cancellation/.dirs/runtime 1202s ok 53 /file/writev/async_all-cancellation 1202s # End of writev tests 1202s # Start of from-uri tests 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/from-uri/ignores-query-string/.dirs/runtime 1202s ok 54 /file/from-uri/ignores-query-string 1202s ok - glib/file.test 1202s # Running test: glib/thread-pool-slow.test 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O3V2E3/file/from-uri/ignores-fragment/.dirs/runtime 1202s ok 55 /file/from-uri/ignores-fragment 1202s # End of from-uri tests 1202s # End of file tests 1202s TAP version 14 1202s # random seed: R02S438827a6545d5c7e493bd644b8ce5f2f 1202s 1..7 1202s # Start of threadpool tests 1202s ok 1 /threadpool/functions 1203s ok 2 /threadpool/stop-unused 1203s # slow test /threadpool/stop-unused executed in 0.51 secs 1203s ok 3 /threadpool/pools 1203s # [unsorted] ===> pushed new thread with id:17, number of threads:1, unprocessed:0 1203s # [unsorted] ===> pushed new thread with id:42, number of threads:2, unprocessed:1 1203s # [unsorted] ===> pushed new thread with id:8, number of threads:3, unprocessed:2 1203s # [unsorted] ===> pushed new thread with id:4, number of threads:4, unprocessed:3 1203s # [unsorted] ===> pushed new thread with id:89, number of threads:5, unprocessed:4 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:6, unprocessed:5 1203s # [unsorted] ===> pushed new thread with id:69, number of threads:7, unprocessed:6 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:8, unprocessed:7 1203s # [unsorted] ===> pushed new thread with id:78, number of threads:9, unprocessed:8 1203s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:8 1203s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:9 1203s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:10 1203s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:10 1203s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:10 1203s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:10 1203s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:11 1203s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:11 1203s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:11 1203s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:11 1203s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:11 1203s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:12 1203s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:13 1203s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:14 1203s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:15 1203s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:16 1203s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:17 1203s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:18 1203s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:19 1203s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:20 1203s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:21 1203s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:22 1203s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:23 1203s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:24 1203s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:25 1203s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:26 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:27 1203s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:28 1203s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:29 1203s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:30 1203s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:31 1203s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:32 1203s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:33 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:34 1203s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:35 1203s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:36 1203s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:37 1203s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:38 1203s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:39 1203s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:40 1203s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:41 1203s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:42 1203s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:43 1203s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:44 1203s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:45 1203s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:46 1203s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:47 1203s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:48 1203s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:49 1203s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:50 1203s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:51 1203s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:52 1203s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:53 1203s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:54 1203s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:55 1203s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:56 1203s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:57 1203s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:58 1203s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:59 1203s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:60 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:61 1203s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:62 1203s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:63 1203s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:64 1203s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:65 1203s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:66 1203s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:67 1203s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:68 1203s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:69 1203s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:70 1203s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:71 1203s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:72 1203s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:73 1203s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:74 1203s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:75 1203s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:76 1203s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:77 1203s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:78 1203s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:79 1203s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:80 1203s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:81 1203s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:82 1203s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:83 1203s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:84 1203s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:85 1203s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:86 1203s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:87 1203s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:88 1203s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:89 1203s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:90 1203s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:91 1203s ok 4 /threadpool/no-sort 1203s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:1 1203s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:2 1203s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:3 1203s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:4 1203s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:5 1203s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:6 1203s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:7 1203s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:8 1203s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:9 1203s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:10 1203s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:11 1203s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:12 1203s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:13 1203s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:14 1203s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:15 1203s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:16 1203s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:17 1203s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:18 1203s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:19 1203s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:20 1203s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:21 1203s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:22 1203s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:23 1203s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:24 1203s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:25 1203s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:26 1203s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:27 1203s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:28 1203s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:29 1203s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:30 1203s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:31 1203s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:32 1203s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:33 1203s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:34 1203s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:35 1203s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:36 1203s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:37 1203s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:38 1203s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:39 1203s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:40 1203s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:41 1203s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:42 1203s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:43 1203s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:44 1203s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:45 1203s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:46 1203s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:47 1203s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:48 1203s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:49 1203s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:50 1203s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:51 1203s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:52 1203s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:53 1203s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:54 1203s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:55 1203s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:56 1203s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:57 1203s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:58 1203s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:59 1203s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:60 1203s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:61 1203s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:62 1203s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:63 1203s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:64 1203s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:65 1203s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:66 1203s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:67 1203s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:68 1203s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:69 1203s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:70 1203s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:71 1203s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:72 1203s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:73 1203s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:74 1203s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:75 1203s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:76 1203s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:77 1203s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:78 1203s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:79 1203s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:80 1203s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:81 1203s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:82 1203s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:83 1203s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:84 1203s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:85 1203s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:86 1203s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:87 1203s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:88 1203s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:89 1203s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:90 1203s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:91 1203s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:92 1203s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:93 1203s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:94 1203s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:95 1203s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:96 1203s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:97 1203s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:98 1203s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:99 1203s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:100 1203s # Starting thread pool processing 1203s ok 5 /threadpool/sort 1203s # Executing: glib/thread-pool-slow.test 1203s ok 6 /threadpool/stop-unused-multiple 1203s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1203s # Pool idle thread count: 0, unprocessed jobs: 49 1204s # Pool idle thread count: 0, unprocessed jobs: 0 1204s # Pool idle thread count: 0, unprocessed jobs: 0 1204s # Pool idle thread count: 10, unprocessed jobs: 0 1204s # Pool idle thread count: 10, unprocessed jobs: 0 1205s # Pool idle thread count: 10, unprocessed jobs: 0 1205s # Pool idle thread count: 10, unprocessed jobs: 0 1205s # Pool idle thread count: 10, unprocessed jobs: 0 1205s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Executing: glib/thread-pool-slow.test 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1211s # Pool idle thread count: 10, unprocessed jobs: 0 1211s # Pool idle thread count: 10, unprocessed jobs: 0 1211s # Pool idle thread count: 10, unprocessed jobs: 0 1211s # Pool idle thread count: 10, unprocessed jobs: 0 1212s # Pool idle thread count: 10, unprocessed jobs: 0 1212s # Pool idle thread count: 10, unprocessed jobs: 0 1212s # Pool idle thread count: 10, unprocessed jobs: 2 1212s # Pool idle thread count: 10, unprocessed jobs: 2 1212s # Pool idle thread count: 8, unprocessed jobs: 0 1212s # Pool idle thread count: 8, unprocessed jobs: 0 1213s # Pool idle thread count: 10, unprocessed jobs: 0 1213s # Pool idle thread count: 10, unprocessed jobs: 0 1213s # Executing: glib/thread-pool-slow.test 1213s # Pool idle thread count: 10, unprocessed jobs: 0 1213s # Pool idle thread count: 10, unprocessed jobs: 0 1214s # Pool idle thread count: 10, unprocessed jobs: 0 1214s # Pool idle thread count: 10, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1217s # Pool idle thread count: 2, unprocessed jobs: 0 1217s # Pool idle thread count: 2, unprocessed jobs: 0 1217s # Pool idle thread count: 2, unprocessed jobs: 0 1217s # Pool idle thread count: 2, unprocessed jobs: 0 1218s # Pool idle thread count: 2, unprocessed jobs: 0 1218s # Pool idle thread count: 2, unprocessed jobs: 0 1218s # Executing: glib/thread-pool-slow.test 1218s # Pool idle thread count: 2, unprocessed jobs: 0 1218s # Pool idle thread count: 2, unprocessed jobs: 0 1219s # Pool idle thread count: 2, unprocessed jobs: 0 1219s # Pool idle thread count: 2, unprocessed jobs: 0 1219s # Pool idle thread count: 2, unprocessed jobs: 0 1219s # Pool idle thread count: 2, unprocessed jobs: 0 1220s # Pool idle thread count: 2, unprocessed jobs: 0 1220s # Pool idle thread count: 2, unprocessed jobs: 0 1220s # Pool idle thread count: 2, unprocessed jobs: 0 1220s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1222s # Pool idle thread count: 2, unprocessed jobs: 0 1222s # Pool idle thread count: 2, unprocessed jobs: 0 1222s # Pool idle thread count: 2, unprocessed jobs: 0 1222s # Pool idle thread count: 2, unprocessed jobs: 0 1223s ok 7 /threadpool/idle-time 1223s # slow test /threadpool/idle-time executed in 19.53 secs 1223s # End of threadpool tests 1223s ok - glib/thread-pool-slow.test 1223s # Running test: glib/value.test 1223s ok - glib/value.test 1223s TAP version 14 1223s # random seed: R02S6747c8ccf5c88029821b69eba8a7c9d4 1223s 1..9 1223s # Start of value tests 1223s ok 1 /value/basic 1223s ok 2 /value/collection 1223s ok 3 /value/copying 1223s ok 4 /value/enum-transformation 1223s ok 5 /value/gtype 1223s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1223s ok 6 /value/string 1223s # Next: GObject object in GValue of GObject to GValue of GObject 1223s # Next: GObject object in GValue of GObject to GValue of TestInterface 1223s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1223s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1223s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1223s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1223s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1223s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1223s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1223s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1223s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1223s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1223s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1223s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1223s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1223s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1223s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1223s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1223s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1223s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1223s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1223s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1223s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1223s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1223s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1223s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1223s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1223s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1223s ok 7 /value/transform-object 1223s # Start of array tests 1223s ok 8 /value/array/basic 1223s ok 9 /value/array/sort-with-data 1223s # End of array tests 1223s # End of value tests 1223s # Running test: glib/flags.test 1223s TAP version 14 1223s # random seed: R02Sccff1bf945cfd9e8af783eade9842a96 1223s 1..1 1223s # Start of gobject tests 1223s # Start of flags tests 1223s ok 1 /gobject/flags/validate 1223s # End of flags tests 1223s # End of gobject tests 1223s ok - glib/flags.test 1223s # Running test: glib/appmonitor.test 1223s ok - glib/appmonitor.test 1223s # Running test: glib/resolver-parsing.test 1223s TAP version 14 1223s # random seed: R02Sbc5fdb32cb57e2d26393e2dc33508eb3 1223s 1..1 1223s # Start of monitor tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/runtime 1223s # Using data directory: /tmp/test_appmonitor_9OHJE3/monitor/app/.dirs/data 1223s ok 1 /monitor/app 1223s # End of monitor tests 1223s TAP version 14 1223s # random seed: R02Sb5994159332e088b3049c407aa6ce97f 1223s 1..21 1223s # Start of gresolver tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/invalid-header/.dirs/runtime 1223s ok 1 /gresolver/invalid-header 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/record-ownership/.dirs/runtime 1223s ok 2 /gresolver/record-ownership 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/unknown-record-type/.dirs/runtime 1223s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1223s ok 3 /gresolver/unknown-record-type 1223s # Start of mx tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/valid/.dirs/runtime 1223s ok 4 /gresolver/mx/valid 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/.dirs/runtime 1223s ok 5 /gresolver/mx/invalid 1223s # Start of invalid tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short/.dirs/runtime 1223s ok 6 /gresolver/mx/invalid/too-short 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/mx/invalid/too-short2/.dirs/runtime 1223s ok 7 /gresolver/mx/invalid/too-short2 1223s # End of invalid tests 1223s # End of mx tests 1223s # Start of ns tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/valid/.dirs/runtime 1223s ok 8 /gresolver/ns/valid 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/ns/invalid/.dirs/runtime 1223s ok 9 /gresolver/ns/invalid 1223s # End of ns tests 1223s # Start of soa tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/valid/.dirs/runtime 1223s ok 10 /gresolver/soa/valid 1223s # Start of invalid tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/mname/.dirs/runtime 1223s ok 11 /gresolver/soa/invalid/mname 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/rname/.dirs/runtime 1223s ok 12 /gresolver/soa/invalid/rname 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/soa/invalid/too-short/.dirs/runtime 1223s ok 13 /gresolver/soa/invalid/too-short 1223s # End of invalid tests 1223s # End of soa tests 1223s # Start of srv tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/valid/.dirs/runtime 1223s ok 14 /gresolver/srv/valid 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/.dirs/runtime 1223s ok 15 /gresolver/srv/invalid 1223s # Start of invalid tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short/.dirs/runtime 1223s ok 16 /gresolver/srv/invalid/too-short 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/srv/invalid/too-short2/.dirs/runtime 1223s ok 17 /gresolver/srv/invalid/too-short2 1223s # End of invalid tests 1223s # End of srv tests 1223s # Start of txt tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/system-config2 1223s ok - glib/resolver-parsing.test 1223s # Running test: glib/object.test 1223s ok - glib/object.test 1223s # Running test: glib/memory-monitor-portal.test 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/.dirs/runtime 1223s ok 18 /gresolver/txt/valid 1223s # Start of valid tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/valid/multiple-strings/.dirs/runtime 1223s ok 19 /gresolver/txt/valid/multiple-strings 1223s # End of valid tests 1223s # Start of invalid tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/empty/.dirs/runtime 1223s ok 20 /gresolver/txt/invalid/empty 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZWXIE3/gresolver/txt/invalid/overflow/.dirs/runtime 1223s ok 21 /gresolver/txt/invalid/overflow 1223s # End of invalid tests 1223s # End of txt tests 1223s # End of gresolver tests 1223s TAP version 14 1223s # random seed: R02Sdeb1720e63ce076f9128f9ce12b586bb 1223s 1..2 1223s # Start of object tests 1223s # Start of constructor tests 1223s ok 1 /object/constructor/singleton 1223s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1223s # End of constructor tests 1223s # End of object tests 1223s # Executing: glib/memory-monitor-portal.test 1223s TAP version 13 1223s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1223s 1..1 1223s ok - glib/memory-monitor-portal.test 1223s # Running test: glib/memchunk.test 1223s TAP version 14 1223s ok - glib/memchunk.test 1223s # random seed: R02Sacf64573862d036965dd1cdea62653b3 1223s 1..1 1223s # Start of memchunk tests 1223s ok 1 /memchunk/basic 1223s # End of memchunk tests 1223s # Running test: glib/gdbus-peer.test 1223s TAP version 14 1223s # random seed: R02S46d649f78664fe32a029df676c6877b8 1223s 1..12 1223s # Start of gdbus tests 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/.dirs/runtime 1223s # Testing with unix:dir address 1223s # Testing with unix:tmpdir address 1223s # Testing with unix:path address 1223s ok 1 /gdbus/peer-to-peer 1223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/home 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/cache 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/system-config2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/config 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/system-data2 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/data 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/state 1223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/delayed-message-processing/.dirs/runtime 1223s # Testing with unix:dir address 1224s ok 2 /gdbus/delayed-message-processing 1224s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/home 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/cache 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/system-config2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/config 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/system-data2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/data 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/state 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/nonce-tcp/.dirs/runtime 1224s ok 3 /gdbus/nonce-tcp 1224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/home 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/cache 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/system-config2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/config 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/system-data2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/data 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/state 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/tcp-anonymous/.dirs/runtime 1224s ok 4 /gdbus/tcp-anonymous 1224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/home 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/cache 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/system-config2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/config 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/system-data2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/data 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/state 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/credentials/.dirs/runtime 1224s ok 5 /gdbus/credentials 1224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/home 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/cache 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/config 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/data 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/state 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/codegen-peer-to-peer/.dirs/runtime 1224s # Testing with unix:dir address 1224s # Machine ID: 6055900af77f4d459e1f3c8d56456362 1225s ok 6 /gdbus/codegen-peer-to-peer 1225s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1225s # Start of peer-to-peer tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/signals/.dirs/runtime 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1225s # Testing with unix:dir address 1225s ok 7 /gdbus/peer-to-peer/signals 1225s # Start of invalid tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1225s ok 8 /gdbus/peer-to-peer/invalid/server 1225s # Start of conn tests 1225s # Start of stream tests 1225s ok - glib/gdbus-peer.test 1225s # Running test: glib/refcount.test 1225s ok - glib/refcount.test 1225s # Running test: glib/completion.test 1225s ok - glib/completion.test 1225s # Running test: glib/properties-refcount1.test 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1225s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1225s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1225s # End of stream tests 1225s # Start of addr tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1225s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_MU5NE3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1225s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1225s # End of addr tests 1225s # End of conn tests 1225s # End of invalid tests 1225s # End of peer-to-peer tests 1225s # End of gdbus tests 1225s TAP version 14 1225s # random seed: R02S8ebac879a0ae8c7dc2ac28eee0687288 1225s 1..4 1225s # Start of refcount tests 1225s ok 1 /refcount/grefcount 1225s ok 2 /refcount/gatomicrefcount 1225s # Start of grefcount tests 1225s ok 3 /refcount/grefcount/saturation 1225s # End of grefcount tests 1225s # Start of gatomicrefcount tests 1225s ok 4 /refcount/gatomicrefcount/saturation 1225s # End of gatomicrefcount tests 1225s # End of refcount tests 1225s TAP version 14 1225s # random seed: R02S077b7f756e5a6186c3d35289e9fff166 1225s 1..1 1225s # Start of completion tests 1225s ok 1 /completion/test-completion 1225s # End of completion tests 1225s TAP version 14 1225s # random seed: R02S4088013fc9a95b9f43f92c0ec1a1d148 1225s 1..1 1225s # Start of gobject tests 1225s # Start of refcount tests 1225s # .d 1225s # .c 1225s # .f 1225s # .e 1225s # .b 1225s # .d 1225s # .c 1225s # .e 1225s # .d 1225s # .f 1225s # .b 1225s # .c 1225s # .f 1225s # .d 1225s # .b 1225s # .e 1225s # .c 1225s # .f 1225s # .e 1225s # .d 1225s # .b 1225s # .c 1225s # .d 1225s # .e 1225s # .b 1225s # .f 1225s # .c 1225s # .d 1225s # .f 1225s # .e 1225s # .b 1225s # .c 1225s # .d 1225s # .f 1225s # .b 1225s # .d 1225s # .c 1225s # .f 1225s # .e 1225s # .b 1225s # .d 1225s # .c 1225s # .f 1225s # .e 1225s # .d 1225s # .b 1225s # .c 1225s # .f 1225s # .e 1225s # .b 1225s # .c 1225s # .d 1225s # .f 1225s # .e 1225s # .c 1225s # .b 1225s # .f 1225s # .d 1226s # .e 1226s # .b 1226s # .f 1226s # .c 1226s # .d 1226s # .e 1226s # .b 1226s # .c 1226s # .f 1226s # .d 1226s # .e 1226s # .b 1226s # .e 1226s # .f 1226s # .c 1226s # .d 1226s # .b 1226s # .f 1226s # .d 1226s # .e 1226s # .b 1226s # .c 1226s # .e 1226s # .b 1226s # .f 1226s # .d 1226s # .c 1226s # .f 1226s # .d 1226s # .e 1226s # .b 1226s # .e 1226s # .b 1226s # .f 1226s # .d 1226s # .c 1226s # .e 1226s # .d 1226s # .b 1226s # .c 1226s # .f 1226s # .e 1226s # .d 1226s # .f 1226s # .c 1226s # .b 1226s # .e 1226s # .f 1226s # .d 1226s # .c 1226s # .b 1226s # .e 1226s # .f 1226s # .d 1226s # .b 1226s # .e 1226s # .c 1226s # .d 1226s # .f 1226s # .b 1226s # .d 1226s # .e 1226s # .c 1226s # .f 1226s # .b 1226s # .f 1226s # .e 1226s # .d 1226s # .c 1226s # .b 1226s # .f 1226s # .e 1226s # .c 1226s # .d 1227s # .b 1227s # .f 1227s # .e 1227s # .c 1227s # .b 1227s # .d 1227s # .f 1227s # .e 1227s # .c 1227s # .d 1227s # .b 1227s # .f 1227s # .e 1227s # .c 1227s # .d 1227s # .f 1227s # .e 1227s # .d 1227s # .c 1227s # .b 1227s # .d 1227s # .c 1227s # .f 1227s # .e 1227s # .b 1227s # .d 1227s # .c 1227s # .f 1227s # .d 1227s # .e 1227s # .b 1227s # .f 1227s # .c 1227s # .e 1227s # .d 1227s # .b 1227s # .d 1227s # .f 1227s # .b 1227s # .c 1227s # .e 1227s # .f 1227s # .d 1227s # .c 1227s # .b 1227s # .e 1227s # .f 1227s # .b 1227s # .e 1227s # .c 1227s # .d 1227s # .f 1227s # .b 1227s # .d 1227s # .e 1227s # .c 1227s # .f 1227s # .b 1227s # .d 1227s # .e 1227s # .c 1227s # .e 1227s # .f 1227s # .c 1227s # .d 1227s # .b 1227s # .e 1227s # .c 1227s # .f 1227s # .b 1227s # .d 1227s # .e 1227s # .c 1228s # .f 1228s # .d 1228s # .b 1228s # .e 1228s # .d 1228s # .b 1228s # .c 1228s # .f 1228s # .e 1228s # .c 1228s # .c 1228s # .b 1228s # .d 1228s # .f 1228s ok 1 /gobject/refcount/properties-1 1228s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1228s # End of refcount tests 1228s # End of gobject tests 1228s ok - glib/properties-refcount1.test 1228s # Running test: glib/gdbus-message.test 1228s TAP version 14 1228s # random seed: R02S9fe1334466151b362ea46ee850adc180 1228s 1..3 1228s # Start of gdbus tests 1228s # Start of message tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7BPIE3/gdbus/message/lock/.dirs/runtime 1228s ok 1 /gdbus/message/lock 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7BPIE3/gdbus/message/copy/.dirs/runtime 1228s ok 2 /gdbus/message/copy 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7BPIE3/gdbus/message/bytes-needed/.dirs/runtime 1228s # Vector: 0 1228s # Vector: 1 1228s # Vector: 2 1228s # Vector: 3 1228s # Vector: 4 1228s # Vector: 5 1228s ok 3 /gdbus/message/bytes-needed 1228s # End of message tests 1228s # End of gdbus tests 1228s ok - glib/gdbus-message.test 1228s # Running test: glib/resources.test 1228s TAP version 14 1228s # random seed: R02S510bac141a062cd98cb71ac93dc29ae5 1228s 1..19 1228s # Start of resource tests 1228s ok 1 /resource/file 1228s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1228s ok 2 /resource/file-path 1228s ok 3 /resource/data 1228s ok 4 /resource/data_unaligned 1228s ok 5 /resource/data-corrupt 1228s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1228s ok 6 /resource/data-corrupt-compression 1228s ok 7 /resource/data-empty 1228s ok 8 /resource/registered 1228s ok 9 /resource/manual 1228s ok 10 /resource/manual2 1228s ok 11 /resource/automatic 1228s ok 12 /resource/module 1228s ok 13 /resource/binary-linked 1228s ok 14 /resource/64k 1228s GLib-GIO-Message: 17:45:31.194: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1228s GLib-GIO-Message: 17:45:31.194: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1228s GLib-GIO-Message: 17:45:31.194: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1228s ok 15 /resource/overlay 1228s ok 16 /resource/digits 1228s ok 17 /resource/has-children 1228s # Start of uri tests 1228s ok 18 /resource/uri/query-info 1228s ok 19 /resource/uri/file 1228s # End of uri tests 1228s # End of resource tests 1228s TAP version 14 1228s # random seed: R02S0583da2ac297cdfb0934763fe978cd20 1228s 1..7 1228s # Start of mappedfile tests 1228s ok 1 /mappedfile/basic 1228s ok 2 /mappedfile/empty 1228s ok 3 /mappedfile/device 1228s ok 4 /mappedfile/nonexisting 1228s ok 5 /mappedfile/writable 1228s ok - glib/resources.test 1228s # Running test: glib/mappedfile.test 1228s ok 6 /mappedfile/writable_fd 1228s ok 7 /mappedfile/gbytes 1228s # End of mappedfile tests 1228s ok - glib/mappedfile.test 1228s # Running test: glib/portal-support-flatpak-network-only.test 1228s TAP version 14 1228s # random seed: R02Sf124f7cd286e71fdec7993b27bd6a3d3 1228s 1..1 1228s # Start of portal-support tests 1228s # Start of flatpak tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/runtime 1228s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_5GHIE3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1228s ok 1 /portal-support/flatpak/network 1228s # End of flatpak tests 1228s # End of portal-support tests 1228s TAP version 14 1228s # random seed: R02S4a9a367454f5fed458aab80b6add62ff 1228s 1..1 1228s # Start of application-command-line tests 1228s ok 1 /application-command-line/basic-properties 1228s # End of application-command-line tests 1228s TAP version 14 1228s # random seed: R02S08d1809aaf7f068082d45bdb84ece9ac 1228s 1..25 1228s # Start of string tests 1228s ok 1 /string/chunks 1228s ok 2 /string/chunk-insert 1228s ok 3 /string/new 1228s ok - glib/portal-support-flatpak-network-only.test 1228s # Running test: glib/application-command-line.test 1228s ok - glib/application-command-line.test 1228s # Running test: glib/string.test 1228s ok 4 /string/printf 1228s ok 5 /string/assign 1228s ok 6 /string/append-c 1228s ok 7 /string/append 1228s ok 8 /string/append-vprintf 1228s ok 9 /string/prepend-c 1228s ok 10 /string/prepend 1228s ok 11 /string/insert 1228s ok 12 /string/insert-unichar 1228s ok 13 /string/equal 1228s ok 14 /string/truncate 1228s ok 15 /string/overwrite 1228s ok 16 /string/nul-handling 1228s ok 17 /string/up-down 1228s ok 18 /string/set-size 1228s ok 19 /string/to-bytes 1228s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1228s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1228s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1228s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1228s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1228s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1228s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1228s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1228s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1228s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1228s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1228s # -> 4 replacements, "fd fr fals" 1228s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1228s # -> 3 replacements, "aaaaaaaaa" 1228s # 7: Replacing "a" with "" (limit 0) in "aaa" 1228s # -> 3 replacements, "" 1228s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1228s # -> 1 replacements, "bba" 1228s # 9: Replacing "" with "bar" (limit 0) in "foo" 1228s # -> 4 replacements, "barfbarobarobar" 1228s # 10: Replacing "" with "bar" (limit 1) in "foo" 1228s # -> 1 replacements, "barfoo" 1228s # 11: Replacing "" with "bar" (limit 2) in "foo" 1228s # -> 2 replacements, "barfbaroo" 1228s # 12: Replacing "" with "bar" (limit 3) in "foo" 1228s # -> 3 replacements, "barfbarobaro" 1228s # 13: Replacing "" with "bar" (limit 4) in "foo" 1228s # -> 4 replacements, "barfbarobarobar" 1228s # 14: Replacing "" with "bar" (limit 5) in "foo" 1228s # -> 4 replacements, "barfbarobarobar" 1228s # 15: Replacing "" with "x" (limit 0) in "" 1228s # -> 1 replacements, "x" 1228s # 16: Replacing "" with "" (limit 0) in "" 1228s # -> 1 replacements, "" 1228s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1228s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1228s ok 20 /string/replace 1228s ok 21 /string/steal 1228s ok 22 /string/new-take 1228s ok 23 /string/copy 1228s ok 24 /string/sized-new 1228s # Start of new-take tests 1228s ok 25 /string/new-take/null 1228s # End of new-take tests 1228s # End of string tests 1228s TAP version 14 1228s # random seed: R02S2145aea813880895a1d707d208cfffb0 1228s 1..4 1228s # Start of enum tests 1228s ok 1 /enum/basic 1228s ok 2 /enum/define-type 1228s # End of enum tests 1228s # Start of flags tests 1228s ok 3 /flags/basic 1228s ok 4 /flags/define-type 1228s # End of flags tests 1228s TAP version 14 1228s # random seed: R02S5aee33e94635a3644de6b469e5ddd365 1228s 1..41 1228s # Start of utils tests 1228s ok 1 /utils/language-names 1228s # Testing locale ‘en’ 1228s # Testing locale ‘sr@latin’ 1228s # Testing locale ‘fr_BE’ 1228s # Testing locale ‘sr_SR@latin’ 1228s # Testing locale ‘sr_SR@latin.UTF-8’ 1228s # Testing locale ‘sr@latin_invalid’ 1228s # Testing locale ‘sr.UTF-8@latin’ 1228s # Testing locale ‘sr.UTF-8_latin’ 1228s # Testing locale ‘sr.UTF-8@latin_invalid’ 1228s ok 2 /utils/locale-variants 1228s ok 3 /utils/version 1228s ok 4 /utils/appname 1228s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1228s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1228s ok 5 /utils/prgname-thread-safety 1228s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1228s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1228s ok 6 /utils/tmpdir 1228s ok - glib/string.test 1228s # Running test: glib/enums.test 1228s ok - glib/enums.test 1228s # Running test: glib/utils-c-99.test 1228s ok 7 /utils/basic_bits 1228s ok 8 /utils/bits 1228s ok 9 /utils/swap 1228s ok 10 /utils/find-program 1228s ok 11 /utils/find-program-for-path 1228s ok 12 /utils/debug 1228s ok 13 /utils/codeset 1228s ok 14 /utils/codeset2 1228s ok 15 /utils/console-charset 1228s ok 16 /utils/gettext 1228s ok 17 /utils/username 1228s ok 18 /utils/realname 1228s ok 19 /utils/hostname 1228s ok 20 /utils/xdgdirs 1228s ok 21 /utils/specialdir 1228s # NAME: Ubuntu 1228s ok 22 /utils/os-info 1228s ok 23 /utils/clear-pointer 1228s ok 24 /utils/clear-pointer-cast 1228s ok 25 /utils/take-pointer 1228s ok 26 /utils/clear-source 1228s ok 27 /utils/misc-mem 1228s # /utils/aligned-mem summary: Aligned memory allocator 1228s # Alignment must not be zero 1228s # Alignment must be a power of two 1228s # Alignment must be a multiple of sizeof(void*) 1228s ok 28 /utils/aligned-mem 1228s # /utils/free-sized summary: Check that g_free_sized() works 1228s ok 29 /utils/free-sized 1228s ok 30 /utils/nullify 1228s ok 31 /utils/atexit 1228s ok 32 /utils/check-setuid 1228s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1228s ok 33 /utils/int-limits 1228s ok 34 /utils/clear-list 1228s ok 35 /utils/clear-slist 1228s ok 36 /utils/steal-handle-id 1228s # Start of specialdir tests 1228s ok 37 /utils/specialdir/desktop 1228s # End of specialdir tests 1228s # Start of clear-pointer tests 1228s ok 38 /utils/clear-pointer/side-effects 1228s # End of clear-pointer tests 1228s # Start of aligned-mem tests 1228s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1228s ok 39 /utils/aligned-mem/alignment 1228s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1228s ok 40 /utils/aligned-mem/zeroed 1228s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1228s ok 41 /utils/aligned-mem/free-sized 1228s # Start of subprocess tests 1228s # End of subprocess tests 1228s # End of aligned-mem tests 1228s # End of utils tests 1228s ok - glib/utils-c-99.test 1228s # Running test: glib/memory-monitor-dbus.test 1228s # Executing: glib/memory-monitor-dbus.test 1228s TAP version 13 1228s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1228s 1..1 1228s ok - glib/memory-monitor-dbus.test 1228s # Running test: glib/utf8-validate.test 1228s TAP version 14 1228s # random seed: R02S746efa7fa9f75630e17b49a58e3893d5 1228s 1..238 1228s # Start of utf8 tests 1228s # Vector 0 1228s # Vector 1 1228s # Vector 2 1228s # Vector 3 1228s # Vector 4 1228s # Vector 5 1228s # Vector 6 1228s # Vector 7 1228s # Vector 8 1228s # Vector 9 1228s # Vector 10 1228s # Vector 11 1228s # Vector 12 1228s # Vector 13 1228s # Vector 14 1228s # Vector 15 1228s # Vector 16 1228s # Vector 17 1228s # Vector 18 1228s # Vector 19 1228s # Vector 20 1228s # Vector 21 1228s # Vector 22 1228s # Vector 23 1228s # Vector 24 1228s # Vector 25 1228s # Vector 26 1228s # Vector 27 1228s ok 1 /utf8/get-char-validated 1228s # Start of validate tests 1228s ok 2 /utf8/validate/0 1228s ok 3 /utf8/validate/1 1228s ok 4 /utf8/validate/2 1228s ok 5 /utf8/validate/3 1228s ok 6 /utf8/validate/4 1228s ok 7 /utf8/validate/5 1228s ok 8 /utf8/validate/6 1228s ok 9 /utf8/validate/7 1228s ok 10 /utf8/validate/8 1228s ok 11 /utf8/validate/9 1228s ok 12 /utf8/validate/10 1228s ok 13 /utf8/validate/11 1228s ok 14 /utf8/validate/12 1228s ok 15 /utf8/validate/13 1228s ok 16 /utf8/validate/14 1228s ok 17 /utf8/validate/15 1228s ok 18 /utf8/validate/16 1228s ok 19 /utf8/validate/17 1228s ok 20 /utf8/validate/18 1228s ok 21 /utf8/validate/19 1228s ok 22 /utf8/validate/20 1228s ok 23 /utf8/validate/21 1228s ok 24 /utf8/validate/22 1228s ok 25 /utf8/validate/23 1228s ok 26 /utf8/validate/24 1228s ok 27 /utf8/validate/25 1228s ok 28 /utf8/validate/26 1228s ok 29 /utf8/validate/27 1228s ok 30 /utf8/validate/28 1228s ok 31 /utf8/validate/29 1228s ok 32 /utf8/validate/30 1228s ok 33 /utf8/validate/31 1228s ok 34 /utf8/validate/32 1228s ok 35 /utf8/validate/33 1228s ok 36 /utf8/validate/34 1228s ok 37 /utf8/validate/35 1228s ok 38 /utf8/validate/36 1228s ok 39 /utf8/validate/37 1228s ok 40 /utf8/validate/38 1228s ok 41 /utf8/validate/39 1228s ok 42 /utf8/validate/40 1228s ok 43 /utf8/validate/41 1228s ok 44 /utf8/validate/42 1228s ok 45 /utf8/validate/43 1228s ok 46 /utf8/validate/44 1228s ok 47 /utf8/validate/45 1228s ok 48 /utf8/validate/46 1228s ok 49 /utf8/validate/47 1228s ok 50 /utf8/validate/48 1228s ok 51 /utf8/validate/49 1228s ok 52 /utf8/validate/50 1228s ok 53 /utf8/validate/51 1228s ok 54 /utf8/validate/52 1228s ok 55 /utf8/validate/53 1228s ok 56 /utf8/validate/54 1228s ok 57 /utf8/validate/55 1228s ok 58 /utf8/validate/56 1228s ok 59 /utf8/validate/57 1228s ok 60 /utf8/validate/58 1228s ok 61 /utf8/validate/59 1228s ok 62 /utf8/validate/60 1228s ok 63 /utf8/validate/61 1228s ok 64 /utf8/validate/62 1228s ok 65 /utf8/validate/63 1228s ok 66 /utf8/validate/64 1228s ok 67 /utf8/validate/65 1228s ok 68 /utf8/validate/66 1228s ok 69 /utf8/validate/67 1228s ok 70 /utf8/validate/68 1228s ok 71 /utf8/validate/69 1228s ok 72 /utf8/validate/70 1228s ok 73 /utf8/validate/71 1228s ok 74 /utf8/validate/72 1228s ok 75 /utf8/validate/73 1228s ok 76 /utf8/validate/74 1228s ok 77 /utf8/validate/75 1228s ok 78 /utf8/validate/76 1228s ok 79 /utf8/validate/77 1228s ok 80 /utf8/validate/78 1228s ok 81 /utf8/validate/79 1228s ok 82 /utf8/validate/80 1228s ok 83 /utf8/validate/81 1228s ok 84 /utf8/validate/82 1228s ok 85 /utf8/validate/83 1228s ok 86 /utf8/validate/84 1228s ok 87 /utf8/validate/85 1228s ok 88 /utf8/validate/86 1228s ok 89 /utf8/validate/87 1228s ok 90 /utf8/validate/88 1228s ok 91 /utf8/validate/89 1228s ok 92 /utf8/validate/90 1228s ok 93 /utf8/validate/91 1228s ok 94 /utf8/validate/92 1228s ok 95 /utf8/validate/93 1228s ok 96 /utf8/validate/94 1228s ok 97 /utf8/validate/95 1228s ok 98 /utf8/validate/96 1228s ok 99 /utf8/validate/97 1228s ok 100 /utf8/validate/98 1228s ok 101 /utf8/validate/99 1228s ok 102 /utf8/validate/100 1228s ok 103 /utf8/validate/101 1228s ok 104 /utf8/validate/102 1228s ok 105 /utf8/validate/103 1228s ok 106 /utf8/validate/104 1228s ok 107 /utf8/validate/105 1228s ok 108 /utf8/validate/106 1228s ok 109 /utf8/validate/107 1228s ok 110 /utf8/validate/108 1228s ok 111 /utf8/validate/109 1228s ok 112 /utf8/validate/110 1228s ok 113 /utf8/validate/111 1228s ok 114 /utf8/validate/112 1228s ok 115 /utf8/validate/113 1228s ok 116 /utf8/validate/114 1228s ok 117 /utf8/validate/115 1228s ok 118 /utf8/validate/116 1228s ok 119 /utf8/validate/117 1228s ok 120 /utf8/validate/118 1228s ok 121 /utf8/validate/119 1228s ok 122 /utf8/validate/120 1228s ok 123 /utf8/validate/121 1228s ok 124 /utf8/validate/122 1228s ok 125 /utf8/validate/123 1228s ok 126 /utf8/validate/124 1228s ok 127 /utf8/validate/125 1228s ok 128 /utf8/validate/126 1228s ok 129 /utf8/validate/127 1228s ok 130 /utf8/validate/128 1228s ok 131 /utf8/validate/129 1228s ok 132 /utf8/validate/130 1228s ok 133 /utf8/validate/131 1228s ok 134 /utf8/validate/132 1228s ok 135 /utf8/validate/133 1228s ok 136 /utf8/validate/134 1228s ok 137 /utf8/validate/135 1228s ok 138 /utf8/validate/136 1228s ok 139 /utf8/validate/137 1228s ok 140 /utf8/validate/138 1228s ok 141 /utf8/validate/139 1228s ok 142 /utf8/validate/140 1228s ok 143 /utf8/validate/141 1228s ok 144 /utf8/validate/142 1228s ok 145 /utf8/validate/143 1228s ok 146 /utf8/validate/144 1228s ok 147 /utf8/validate/145 1228s ok 148 /utf8/validate/146 1228s ok 149 /utf8/validate/147 1228s ok 150 /utf8/validate/148 1228s ok 151 /utf8/validate/149 1228s ok 152 /utf8/validate/150 1228s ok 153 /utf8/validate/151 1228s ok 154 /utf8/validate/152 1228s ok 155 /utf8/validate/153 1228s ok 156 /utf8/validate/154 1228s ok 157 /utf8/validate/155 1228s ok 158 /utf8/validate/156 1228s ok 159 /utf8/validate/157 1228s ok 160 /utf8/validate/158 1228s ok 161 /utf8/validate/159 1228s ok 162 /utf8/validate/160 1228s ok 163 /utf8/validate/161 1228s ok 164 /utf8/validate/162 1228s ok 165 /utf8/validate/163 1228s ok 166 /utf8/validate/164 1228s ok 167 /utf8/validate/165 1228s ok 168 /utf8/validate/166 1228s ok 169 /utf8/validate/167 1228s ok 170 /utf8/validate/168 1228s ok 171 /utf8/validate/169 1228s ok 172 /utf8/validate/170 1228s ok 173 /utf8/validate/171 1228s ok 174 /utf8/validate/172 1228s ok 175 /utf8/validate/173 1228s ok 176 /utf8/validate/174 1228s ok 177 /utf8/validate/175 1228s ok 178 /utf8/validate/176 1228s ok 179 /utf8/validate/177 1228s ok 180 /utf8/validate/178 1228s ok 181 /utf8/validate/179 1228s ok 182 /utf8/validate/180 1228s ok 183 /utf8/validate/181 1228s ok 184 /utf8/validate/182 1228s ok 185 /utf8/validate/183 1228s ok 186 /utf8/validate/184 1228s ok 187 /utf8/validate/185 1228s ok 188 /utf8/validate/186 1228s ok 189 /utf8/validate/187 1228s ok 190 /utf8/validate/188 1228s ok 191 /utf8/validate/189 1228s ok 192 /utf8/validate/190 1228s ok 193 /utf8/validate/191 1228s ok 194 /utf8/validate/192 1228s ok 195 /utf8/validate/193 1228s ok 196 /utf8/validate/194 1228s ok 197 /utf8/validate/195 1228s ok 198 /utf8/validate/196 1228s ok 199 /utf8/validate/197 1228s ok 200 /utf8/validate/198 1228s ok 201 /utf8/validate/199 1228s ok 202 /utf8/validate/200 1228s ok 203 /utf8/validate/201 1228s ok 204 /utf8/validate/202 1228s ok 205 /utf8/validate/203 1228s ok 206 /utf8/validate/204 1228s ok 207 /utf8/validate/205 1228s ok 208 /utf8/validate/206 1228s ok 209 /utf8/validate/207 1228s ok 210 /utf8/validate/208 1228s ok 211 /utf8/validate/209 1228s ok 212 /utf8/validate/210 1228s ok 213 /utf8/validate/211 1228s ok 214 /utf8/validate/212 1228s ok 215 /utf8/validate/213 1228s ok 216 /utf8/validate/214 1228s ok 217 /utf8/validate/215 1228s ok 218 /utf8/validate/216 1228s ok 219 /utf8/validate/217 1228s ok 220 /utf8/validate/218 1228s ok 221 /utf8/validate/219 1228s ok 222 /utf8/validate/220 1228s ok 223 /utf8/validate/221 1228s ok 224 /utf8/validate/222 1228s ok 225 /utf8/validate/223 1228s ok 226 /utf8/validate/224 1228s ok 227 /utf8/validate/225 1228s ok 228 /utf8/validate/226 1228s ok 229 /utf8/validate/227 1228s ok 230 /utf8/validate/228 1228s ok 231 /utf8/validate/229 1228s ok 232 /utf8/validate/230 1228s ok 233 /utf8/validate/231 1228s ok 234 /utf8/validate/232 1228s ok 235 /utf8/validate/233 1228s ok 236 /utf8/validate/234 1228s ok 237 /utf8/validate/235 1228s ok 238 /utf8/validate/236 1228s # End of validate tests 1228s # End of utf8 tests 1228s ok - glib/utf8-validate.test 1228s # Running test: glib/actions.test 1228s TAP version 14 1228s # random seed: R02S9f5c4c04d71111f5189ad0e108501eab 1228s 1..13 1228s # Start of actions tests 1228s ok 1 /actions/basic 1228s ok 2 /actions/name 1228s ok 3 /actions/simplegroup 1228s ok 4 /actions/stateful 1228s ok 5 /actions/default-activate 1228s ok 6 /actions/entries 1228s ok 7 /actions/parse-detailed 1228s ok 8 /actions/property 1228s ok 9 /actions/no-properties 1228s # Start of dbus tests 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s ok 10 /actions/dbus/export 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1228s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s ok 11 /actions/dbus/threaded 1229s # slow test /actions/dbus/threaded executed in 1.17 secs 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s ok 12 /actions/dbus/bug679509 1229s # Start of export tests 1229s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1229s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1229s ok 13 /actions/dbus/export/error-handling 1229s # End of export tests 1229s # End of dbus tests 1229s # End of actions tests 1229s ok - glib/actions.test 1229s # Running test: glib/srvtarget.test 1229s TAP version 14 1229s # random seed: R02Sc4c7aac89d844d9d2718b5e2170ea29b 1229s 1..1 1229s # Start of srvtarget tests 1230s ok 1 /srvtarget/srv-target-ordering 1230s # End of srvtarget tests 1230s ok - glib/srvtarget.test 1230s # Running test: glib/utils.test 1230s TAP version 14 1230s # random seed: R02Sf53c12a0838f4e4540b708d4423eb2fe 1230s 1..41 1230s # Start of utils tests 1230s ok 1 /utils/language-names 1230s # Testing locale ‘en’ 1230s # Testing locale ‘sr@latin’ 1230s # Testing locale ‘fr_BE’ 1230s # Testing locale ‘sr_SR@latin’ 1230s # Testing locale ‘sr_SR@latin.UTF-8’ 1230s # Testing locale ‘sr@latin_invalid’ 1230s # Testing locale ‘sr.UTF-8@latin’ 1230s # Testing locale ‘sr.UTF-8_latin’ 1230s # Testing locale ‘sr.UTF-8@latin_invalid’ 1230s ok 2 /utils/locale-variants 1230s ok 3 /utils/version 1230s ok 4 /utils/appname 1230s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1230s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1230s ok 5 /utils/prgname-thread-safety 1230s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1230s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1230s ok 6 /utils/tmpdir 1230s ok 7 /utils/basic_bits 1230s ok 8 /utils/bits 1230s ok 9 /utils/swap 1230s ok 10 /utils/find-program 1230s ok 11 /utils/find-program-for-path 1230s ok 12 /utils/debug 1230s ok 13 /utils/codeset 1230s ok 14 /utils/codeset2 1230s ok 15 /utils/console-charset 1230s ok 16 /utils/gettext 1230s ok 17 /utils/username 1230s ok 18 /utils/realname 1230s ok 19 /utils/hostname 1230s ok 20 /utils/xdgdirs 1230s ok 21 /utils/specialdir 1230s # NAME: Ubuntu 1230s ok 22 /utils/os-info 1230s ok 23 /utils/clear-pointer 1230s ok 24 /utils/clear-pointer-cast 1230s ok 25 /utils/take-pointer 1230s ok 26 /utils/clear-source 1230s ok 27 /utils/misc-mem 1230s # /utils/aligned-mem summary: Aligned memory allocator 1230s # Alignment must not be zero 1230s # Alignment must be a power of two 1230s # Alignment must be a multiple of sizeof(void*) 1230s ok 28 /utils/aligned-mem 1230s # /utils/free-sized summary: Check that g_free_sized() works 1230s ok 29 /utils/free-sized 1230s ok 30 /utils/nullify 1230s ok 31 /utils/atexit 1230s ok 32 /utils/check-setuid 1230s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1230s ok 33 /utils/int-limits 1230s ok 34 /utils/clear-list 1230s ok 35 /utils/clear-slist 1230s ok 36 /utils/steal-handle-id 1230s # Start of specialdir tests 1230s ok 37 /utils/specialdir/desktop 1230s # End of specialdir tests 1230s # Start of clear-pointer tests 1230s ok 38 /utils/clear-pointer/side-effects 1230s # End of clear-pointer tests 1230s ok - glib/utils.test 1230s # Running test: glib/g-file-info-filesystem-readonly.test 1230s # Start of aligned-mem tests 1230s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1230s ok 39 /utils/aligned-mem/alignment 1230s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1230s ok 40 /utils/aligned-mem/zeroed 1230s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1230s ok 41 /utils/aligned-mem/free-sized 1230s # Start of subprocess tests 1230s # End of subprocess tests 1230s # End of aligned-mem tests 1230s # End of utils tests 1230s TAP version 14 1230s # random seed: R02S4e142257a1ece091662d52ae2aa6678b 1230s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1230s 1..2 1230s # Start of g-file-info-filesystem-readonly tests 1230s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1230s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1230s ok - glib/g-file-info-filesystem-readonly.test 1230s # Running test: glib/tls-certificate.test 1230s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_1V8HE3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1230s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1230s # End of g-file-info-filesystem-readonly tests 1230s TAP version 14 1230s # random seed: R02S6252edc558daef877cd0101483b8c7ca 1230s 1..19 1230s # Start of tls-certificate tests 1230s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1230s ok 1 /tls-certificate/pem-parser 1230s ok 2 /tls-certificate/pem-parser-handles-chain 1230s ok 3 /tls-certificate/from_file 1230s ok 4 /tls-certificate/from_files 1230s ok 5 /tls-certificate/from_files_crlf 1230s ok 6 /tls-certificate/from_files_pkcs8 1230s ok 7 /tls-certificate/from_files_pkcs8enc 1230s ok - glib/tls-certificate.test 1230s # Running test: glib/uri.test 1230s ok 8 /tls-certificate/list_from_file 1230s ok 9 /tls-certificate/pkcs11-uri 1230s ok 10 /tls-certificate/pkcs11-uri-unsupported 1230s ok 11 /tls-certificate/from_pkcs12 1230s ok 12 /tls-certificate/from_pkcs12_file 1230s ok 13 /tls-certificate/not-valid-before 1230s ok 14 /tls-certificate/not-valid-after 1230s ok 15 /tls-certificate/subject-name 1230s ok 16 /tls-certificate/issuer-name 1230s ok 17 /tls-certificate/dns-names 1230s ok 18 /tls-certificate/ip-addresses 1230s ok 19 /tls-certificate/pem-parser-no-sentinel 1230s # End of tls-certificate tests 1230s TAP version 14 1230s # random seed: R02Sbfe7143d5cba3a31b0c5f8d9ad01150e 1230s 1..24 1230s # Start of uri tests 1230s ok 1 /uri/file-to-uri 1230s ok 2 /uri/file-from-uri 1230s ok 3 /uri/file-roundtrip 1230s ok 4 /uri/list 1230s # Test 0: %2Babc %4F 1230s # Test 1: %2Babc %4F 1230s # Test 2: %00abc %4F 1230s # Test 3: /cursors/none.png 1230s # Test 4: /cursors%2fbad-subdir/none.png 1230s # Test 5: %0 1230s # Test 6: %ra 1230s # Test 7: %2r 1230s # Test 8: Timm Bäder 1230s # Test 9: (null) 1230s ok 5 /uri/unescape-string 1230s ok 6 /uri/unescape-segment 1230s # Test 0: abcdefgABCDEFG._~ 1230s # Test 1: :+ \\?# 1230s # Test 2: a+b:c 1230s # Test 3: a+b:c\303\234 1230s # Test 4: \374;\322 1230s # Test 5: \303\261\303( 1230s ok 7 /uri/escape-string 1230s ok 8 /uri/escape-bytes 1230s ok 9 /uri/scheme 1230s ok 10 /uri/build 1230s ok 11 /uri/split 1230s ok 12 /uri/is_valid 1230s ok 13 /uri/to-string 1230s ok 14 /uri/join 1230s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1230s # Combination 0 1230s # Combination 1 1230s # Combination 2 1230s # Combination 3 1230s # Combination 4 1230s # Combination 5 1230s # Combination 6 1230s # Combination 7 1230s # Combination 8 1230s # Combination 9 1230s # Combination 10 1230s # Combination 11 1230s # Combination 12 1230s # Combination 13 1230s # Combination 14 1230s # Combination 15 1230s # Combination 16 1230s # Combination 17 1230s # Combination 18 1230s # Combination 19 1230s # Combination 20 1230s # Combination 21 1230s # Combination 22 1230s # Combination 23 1230s # Combination 24 1230s # Combination 25 1230s # Combination 26 1230s # Combination 27 1230s # Combination 28 1230s # Combination 29 1230s # Combination 30 1230s # Combination 31 1230s # Combination 32 1230s # Combination 33 1230s # Combination 34 1230s # Combination 35 1230s # Combination 36 1230s # Combination 37 1230s # Combination 38 1230s # Combination 39 1230s # Combination 40 1230s # Combination 41 1230s # Combination 42 1230s # Combination 43 1230s # Combination 44 1230s # Combination 45 1230s # Combination 46 1230s # Combination 47 1230s # Combination 48 1230s # Combination 49 1230s # Combination 50 1230s # Combination 51 1230s # Combination 52 1230s # Combination 53 1230s # Combination 54 1230s # Combination 55 1230s # Combination 56 1230s # Combination 57 1230s # Combination 58 1230s # Combination 59 1230s # Combination 60 1230s # Combination 61 1230s # Combination 62 1230s # Combination 63 1230s # Combination 64 1230s # Combination 65 1230s # Combination 66 1230s # Combination 67 1230s # Combination 68 1230s # Combination 69 1230s # Combination 70 1230s # Combination 71 1230s # Combination 72 1230s # Combination 73 1230s # Combination 74 1230s # Combination 75 1230s # Combination 76 1230s # Combination 77 1230s # Combination 78 1230s # Combination 79 1230s # Combination 80 1230s # Combination 81 1230s # Combination 82 1230s # Combination 83 1230s # Combination 84 1230s # Combination 85 1230s # Combination 86 1230s # Combination 87 1230s # Combination 88 1230s # Combination 89 1230s # Combination 90 1230s # Combination 91 1230s # Combination 92 1230s # Combination 93 1230s # Combination 94 1230s # Combination 95 1230s # Combination 96 1230s # Combination 97 1230s # Combination 98 1230s # Combination 99 1230s # Combination 100 1230s # Combination 101 1230s # Combination 102 1230s # Combination 103 1230s # Combination 104 1230s # Combination 105 1230s # Combination 106 1230s # Combination 107 1230s # Combination 108 1230s # Combination 109 1230s # Combination 110 1230s # Combination 111 1230s # Combination 112 1230s # Combination 113 1230s # Combination 114 1230s # Combination 115 1230s # Combination 116 1230s # Combination 117 1230s # Combination 118 1230s # Combination 119 1230s # Combination 120 1230s # Combination 121 1230s # Combination 122 1230s # Combination 123 1230s # Combination 124 1230s # Combination 125 1230s # Combination 126 1230s # Combination 127 1230s # Combination 128 1230s # Combination 129 1230s # Combination 130 1230s # Combination 131 1230s # Combination 132 1230s # Combination 133 1230s # Combination 134 1230s # Combination 135 1230s # Combination 136 1230s # Combination 137 1230s # Combination 138 1230s # Combination 139 1230s # Combination 140 1230s # Combination 141 1230s # Combination 142 1230s # Combination 143 1230s # Combination 144 1230s # Combination 145 1230s # Combination 146 1230s # Combination 147 1230s # Combination 148 1230s # Combination 149 1230s # Combination 150 1230s # Combination 151 1230s # Combination 152 1230s # Combination 153 1230s # Combination 154 1230s # Combination 155 1230s # Combination 156 1230s # Combination 157 1230s # Combination 158 1230s # Combination 159 1230s # Combination 160 1230s # Combination 161 1230s # Combination 162 1230s # Combination 163 1230s # Combination 164 1230s # Combination 165 1230s # Combination 166 1230s # Combination 167 1230s # Combination 168 1230s # Combination 169 1230s # Combination 170 1230s # Combination 171 1230s # Combination 172 1230s # Combination 173 1230s # Combination 174 1230s # Combination 175 1230s # Combination 176 1230s # Combination 177 1230s # Combination 178 1230s # Combination 179 1230s # Combination 180 1230s # Combination 181 1230s # Combination 182 1230s # Combination 183 1230s # Combination 184 1230s # Combination 185 1230s # Combination 186 1230s # Combination 187 1230s # Combination 188 1230s # Combination 189 1230s # Combination 190 1230s # Combination 191 1230s # Combination 192 1230s # Combination 193 1230s # Combination 194 1230s # Combination 195 1230s # Combination 196 1230s # Combination 197 1230s # Combination 198 1230s # Combination 199 1230s # Combination 200 1230s # Combination 201 1230s # Combination 202 1230s # Combination 203 1230s # Combination 204 1230s # Combination 205 1230s # Combination 206 1230s # Combination 207 1230s # Combination 208 1230s # Combination 209 1230s # Combination 210 1230s # Combination 211 1230s # Combination 212 1230s # Combination 213 1230s # Combination 214 1230s # Combination 215 1230s # Combination 216 1230s # Combination 217 1230s # Combination 218 1230s # Combination 219 1230s # Combination 220 1230s # Combination 221 1230s # Combination 222 1230s # Combination 223 1230s # Combination 224 1230s # Combination 225 1230s # Combination 226 1230s # Combination 227 1230s # Combination 228 1230s # Combination 229 1230s # Combination 230 1230s # Combination 231 1230s # Combination 232 1230s # Combination 233 1230s # Combination 234 1230s # Combination 235 1230s # Combination 236 1230s # Combination 237 1230s # Combination 238 1230s # Combination 239 1230s # Combination 240 1230s # Combination 241 1230s # Combination 242 1230s # Combination 243 1230s # Combination 244 1230s # Combination 245 1230s # Combination 246 1230s # Combination 247 1230s # Combination 248 1230s # Combination 249 1230s # Combination 250 1230s # Combination 251 1230s # Combination 252 1230s # Combination 253 1230s # Combination 254 1230s # Combination 255 1230s ok 15 /uri/join-split-round-trip 1230s ok 16 /uri/normalize 1230s # Start of unescape-bytes tests 1230s # Test 0: %00%00 1230s # Test 1: /cursors/none.png 1230s # Test 2: /cursors%2fbad-subdir/none.png 1230s # Test 3: %% 1230s # Test 4: % 1230s ok 17 /uri/unescape-bytes/nul-terminated 1230s # Test 0: %00%00 1230s # Test 1: /cursors/none.png 1230s # Test 2: /cursors%2fbad-subdir/none.png 1230s # Test 3: %% 1230s # Test 4: % 1230s ok 18 /uri/unescape-bytes/length 1230s # End of unescape-bytes tests 1230s # Start of parsing tests 1230s # Test 0: foo: 1230s # Test 1: file:/dev/null 1230s # Test 2: file:///dev/null 1230s # Test 3: ftp://user@host/path 1230s # Test 4: ftp://user@host:9999/path 1230s # Test 5: ftp://user:password@host/path 1230s # Test 6: ftp://user:password@host:9999/path 1230s # Test 7: ftp://user:password@host 1230s # Test 8: http://us%65r@host 1230s # Test 9: http://us%40r@host 1230s # Test 10: http://us%3ar@host 1230s # Test 11: http://us%2fr@host 1230s # Test 12: http://us%3fr@host 1230s # Test 13: http://host?query 1230s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1230s # 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 1230s # Test 16: http://space/%20 1230s # Test 17: http://delims/%3C%3E%23%25%22 1230s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1230s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1230s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1230s # Test 21: http://[3ffe:2a00:100:7031::1] 1230s # Test 22: http://[1080::8:800:200C:417A]/foo 1230s # Test 23: http://[::192.9.5.5]/ipng 1230s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1230s # Test 25: http://[2010:836B:4179::836B:4179] 1230s # Test 26: http://host/path with spaces 1230s # Test 27: http://host/path 1230s # Test 28: http://host/path 1230s # Test 29: http://host 1230s # Test 30: http://host:999 1230s # Test 31: http://host/pa 1230s # th 1230s # Test 32: http: 1230s # //host/path 1230s # Test 33: http:// host/path 1230s # Test 34: http://host/path? 1230s # Test 35: http://host/path# 1230s # Test 36: http://host/path% 1230s # Test 37: http://h%ost/path 1230s # Test 38: http://host/path%% 1230s # Test 39: http://host/path%%% 1230s # Test 40: http://host/path%/x/ 1230s # Test 41: http://host/path%0x/ 1230s # Test 42: http://host/path%ax 1230s # Test 43: http://host/päth/ 1230s # Test 44: HTTP://////////////// 1230s # Test 45: http://@host 1230s # Test 46: http://:@host 1230s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1230s # Test 48: http://example.com/.. 1230s # Test 49: foo0://host/path 1230s # Test 50: f0.o://host/path 1230s # Test 51: http++://host/path 1230s # Test 52: http-ish://host/path 1230s # Test 53: http://[fe80::dead:beef%]/ 1230s # Test 54: http://[fe80::dead:beef%em1]/ 1230s # Test 55: http://[fe80::dead:beef%em1]/ 1230s # Test 56: http://[fe80::dead:beef%25em1]/ 1230s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1230s # Test 58: http://[fe80::dead:beef%25em%31]/ 1230s # Test 59: http://[fe80::dead:beef%10]/ 1230s # Test 60: http://[fe80::dead:beef%10]/ 1230s ok - glib/uri.test 1230s # Running test: glib/objects-refcount2.test 1230s # Test 61: http://[fe80::dead:beef%25]/ 1230s # Test 62: http://[fe80::dead:beef%25]/ 1230s # Test 63: http://[192.168.0.1%25em1]/ 1230s # Test 64: http://[fe80::dead:beef%2em1]/ 1230s # Test 65: http://[fe80::dead:beef%2em1]/ 1230s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1230s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1230s # Test 68: http://xn--mixed-üp/ 1230s # Test 69: data:./// 1230s # Test 70: data:/.// 1230s ok 19 /uri/parsing/absolute 1230s ok 20 /uri/parsing/relative 1230s # End of parsing tests 1230s # Start of iter-params tests 1230s # URI 0: p1=foo&p2=bar;p3=baz 1230s # URI 1: p1=foo&p2=bar 1230s # URI 2: p1=foo&&P1=bar 1230s # URI 3: %00=foo 1230s # URI 4: p1=%00 1230s # URI 5: p1=foo&p1=bar 1230s # URI 6: p1=foo&P1=bar 1230s # URI 7: =% 1230s # URI 8: = 1230s # URI 9: foo 1230s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1230s ok 21 /uri/iter-params/nul-terminated 1230s # URI 0: p1=foo&p2=bar;p3=baz 1230s # URI 1: p1=foo&p2=bar 1230s # URI 2: p1=foo&&P1=bar 1230s # URI 3: %00=foo 1230s # URI 4: p1=%00 1230s # URI 5: p1=foo&p1=bar 1230s # URI 6: p1=foo&P1=bar 1230s # URI 7: =% 1230s # URI 8: = 1230s # URI 9: foo 1230s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1230s ok 22 /uri/iter-params/length 1230s # End of iter-params tests 1230s # Start of parse-params tests 1230s # URI 0: p1=foo&p2=bar;p3=baz 1230s # URI 1: p1=foo&p2=bar 1230s # URI 2: p1=foo&&P1=bar 1230s # URI 3: %00=foo 1230s # URI 4: p1=%00 1230s # URI 5: p1=foo&p1=bar 1230s # URI 6: p1=foo&P1=bar 1230s # URI 7: =% 1230s # URI 8: = 1230s # URI 9: foo 1230s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1230s ok 23 /uri/parse-params/nul-terminated 1230s # URI 0: p1=foo&p2=bar;p3=baz 1230s # URI 1: p1=foo&p2=bar 1230s # URI 2: p1=foo&&P1=bar 1230s # URI 3: %00=foo 1230s # URI 4: p1=%00 1230s # URI 5: p1=foo&p1=bar 1230s # URI 6: p1=foo&P1=bar 1230s # URI 7: =% 1230s # URI 8: = 1230s # URI 9: foo 1230s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1230s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1230s ok 24 /uri/parse-params/length 1230s # End of parse-params tests 1230s # End of uri tests 1230s TAP version 14 1230s # random seed: R02Sca81b2950c0896f0ebb6c66a1d67dbed 1230s 1..1 1230s # Start of gobject tests 1230s # Start of refcount tests 1230s # init 0xadeaaaf86d70 1230s # 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1230s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1231s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1232s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # Executing: glib/objects-refcount2.test 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1233s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1234s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1235s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # . 1236s # dispose 0xadeaaaf86d70! 1236s # 1236s ok 1 /gobject/refcount/object-advanced 1236s # slow test /gobject/refcount/object-advanced executed in 6.62 secs 1236s # End of refcount tests 1236s # End of gobject tests 1236s ok - glib/objects-refcount2.test 1236s # Running test: glib/live-g-file.test 1236s TAP version 14 1236s # random seed: R02Sa92468f1b81ab26519db0728318c469c 1236s 1..13 1236s # Start of live-g-file tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/prep_clean_structure/.dirs/runtime 1236s # Cleaning target testing structure in '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1236s ok 1 /live-g-file/prep_clean_structure 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/create_structure/.dirs/runtime 1236s # 1236s # Going to create testing structure in '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # Creating directory 'dir1'... 1236s # Creating directory 'dir1/subdir'... 1236s # Creating directory 'dir2'... 1236s # Creating directory 'dir-target'... 1236s # Creating directory 'dir_no-access'... 1236s # Creating directory 'dir_no-write'... 1236s # Creating file 'target-file'... 1236s # Creating file 'normal_file'... 1236s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1236s # Creating file 'executable_file'... 1236s # Creating file 'private_file'... 1236s # Creating file 'normal_file2'... 1236s # Creating file 'readonly_file'... 1236s # Creating file 'UTF_příliš z'... 1236s # Creating directory 'dir_příliš z'... 1236s # Creating symlink 'lost_symlink' --> 'nowhere'... 1236s # Creating directory 'dir_hidden'... 1236s # Creating file 'dir_hidden/.a-hidden-file'... 1236s # Creating file 'dir_hidden/file-in-.hidden1'... 1236s # Creating file 'dir_hidden/file-in-.hidden2'... 1236s # Creating pattern file... 1236s # done. 1236s ok 2 /live-g-file/create_structure 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_initial_structure/.dirs/runtime 1236s # Testing sample structure in '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # Testing file 'dir1'... 1236s # Testing file 'dir1/subdir'... 1236s # Testing file 'dir2'... 1236s # Testing file 'dir-target'... 1236s # Testing file 'dir_no-access'... 1236s # Testing file 'dir_no-write'... 1236s # Testing file 'target-file'... 1236s # Testing file 'normal_file'... 1236s # Testing file 'normal_file-symlink'... 1236s # Testing file 'executable_file'... 1236s # Testing file 'private_file'... 1236s # Testing file 'normal_file2'... 1236s # Testing file 'readonly_file'... 1236s # Testing file 'UTF_příliš z'... 1236s # Testing file 'dir_příliš z'... 1236s # Testing file 'lost_symlink'... 1236s # Testing file 'dir_hidden'... 1236s # Testing file 'dir_hidden/.a-hidden-file'... 1236s # Testing file 'dir_hidden/file-in-.hidden1'... 1236s # Testing file 'dir_hidden/file-in-.hidden2'... 1236s # Testing pattern file... 1236s # read 65536 bytes, total = 65536 of 65536. 1236s ok 3 /live-g-file/test_initial_structure 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_traverse_structure/.dirs/runtime 1236s # Traversing through the sample structure in '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # Found file dir1, relative to root: dir1 1236s # Found file subdir, relative to root: dir1/subdir 1236s # Found file dir2, relative to root: dir2 1236s # Found file dir-target, relative to root: dir-target 1236s # Found file dir_no-access, relative to root: dir_no-access 1236s # Found file dir_no-write, relative to root: dir_no-write 1236s # Found file target-file, relative to root: target-file 1236s # Found file normal_file, relative to root: normal_file 1236s # Found file normal_file-symlink, relative to root: normal_file-symlink 1236s # Found file executable_file, relative to root: executable_file 1236s # Found file private_file, relative to root: private_file 1236s # Found file normal_file2, relative to root: normal_file2 1236s # Found file readonly_file, relative to root: readonly_file 1236s # Found file UTF_příliš z, relative to root: UTF_příliš z 1236s # Found file dir_příliš z, relative to root: dir_příliš z 1236s # Found file lost_symlink, relative to root: lost_symlink 1236s # Found file dir_hidden, relative to root: dir_hidden 1236s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1236s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1236s # Found file .hidden, relative to root: dir_hidden/.hidden 1236s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1236s # Found file pattern_file, relative to root: pattern_file 1236s ok 4 /live-g-file/test_traverse_structure 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_enumerate/.dirs/runtime 1236s # Test enumerate '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # Testing file 'dir_no-access' 1236s # Testing file 'normal_file' 1236s # Testing file 'normal_file-symlink' 1236s # Testing file 'not_exists' 1236s # Testing file 'not_exists' 1236s # Testing file 'not_exists2' 1236s # Testing file 'not_exists3' 1236s # Testing file 'not_exists4' 1236s # Testing file 'dir_no-execute/file' 1236s ok 5 /live-g-file/test_enumerate 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_open/.dirs/runtime 1236s # test_open: 'dir1' 1236s # test_open: 'dir_no-access' 1236s # test_open: 'target-file' 1236s # test_open: 'normal_file-symlink' 1236s # test_open: 'executable_file' 1236s # test_open: 'private_file' 1236s # test_open: 'readonly_file' 1236s # test_open: 'UTF_příliš z' 1236s # test_open: 'pattern_file' 1236s # test_open: 'not_exists' 1236s # test_open: 'dir_no-execute/file' 1236s # test_open: 'lost_symlink' 1236s ok 6 /live-g-file/test_open 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_create/.dirs/runtime 1236s # test_create: 'dir1' 1236s # error code 3 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir1”: Is a directory 1236s # test_create: 'dir1/subdir' 1236s # error code 3 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir1/subdir”: Is a directory 1236s # test_create: 'dir2' 1236s # error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir2”: File exists 1236s # test_create: 'normal_file' 1236s # error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/normal_file”: File exists 1236s # test_create: 'executable_file' 1236s # test_create: 'private_file' 1236s # test_create: 'normal_file2' 1236s # test_create: 'UTF_příliš z' 1236s # error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/UTF_příliš z”: File exists 1236s # test_create: 'dir_příliš z' 1236s # error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_příliš z”: File exists 1236s # test_create: 'pattern_file' 1236s # test_create: 'not_exists2' 1236s # test_create: 'not_exists3' 1236s # test_create: 'not_exists4' 1236s ok 7 /live-g-file/test_create 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_copy_move/.dirs/runtime 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> '.' 1236s # res = 0, error code 2 = Target file exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> 'target-file' 1236s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir2' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> 'dir-target' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> '.' 1236s # res = 0, error code 2 = Target file exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> 'target-file' 1236s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/dir-target”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> 'not_exists' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> 'dir_no-access' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'dir-target' --> 'dir_no-write' 1236s # res = 0, error code 25 = Can’t recursively copy directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/target-file”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'target-file' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> '.' 1236s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/normal_file-symlink: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1236s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1236s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/executable_file”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/executable_file”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'executable_file' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/private_file”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/private_file”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'private_file' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/normal_file2”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/UTF_příliš z”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> '.' 1236s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/pattern_file”: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> 'target-file' 1236s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> 'not_exists' 1236s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'dir-target' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> '.' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'target-file' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'not_exists' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'dir_no-access' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'dir_no-write' 1236s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists”: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'not_exists' --> 'dir-target' 1236s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> 'dir-target' 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> '.' 1236s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/lost_symlink: File exists 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> 'target-file' 1236s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> 'not_exists' 1236s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1236s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1236s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1236s ok 8 /live-g-file/test_copy_move 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_delete/.dirs/runtime 1236s # Deleting dir1, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir1 1236s # result = 0, error = Error removing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir1: Directory not empty 1236s # Deleting dir2, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir2 1236s # result = 0, error = Error removing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir2: No such file or directory 1236s # Deleting executable_file, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/executable_file 1236s # result = 0, error = Error trashing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/executable_file: No such file or directory 1236s # Deleting readonly_file, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/readonly_file 1236s # Deleting dir_příliš z, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_příliš z 1236s # Deleting not_exists, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists 1236s # result = 0, error = Error removing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists: No such file or directory 1236s # Deleting not_exists, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists 1236s # result = 0, error = Error trashing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/not_exists: No such file or directory 1236s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-execute/file 1236s # result = 0, error = Error removing file /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1236s # Deleting lost_symlink, path = /tmp/test_live-g-file_5GG2E3/testdir_live-g-file/lost_symlink 1236s ok 9 /live-g-file/test_delete 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1236s # We do not have CAP_DAC_OVERRIDE or equivalent 1236s ok 10 /live-g-file/test_make_directory_with_parents 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/final_clean/.dirs/runtime 1236s # Cleaning target testing structure in '/tmp/test_live-g-file_5GG2E3/testdir_live-g-file'... 1236s # deleting 'dir1' 1236s # deleting 'subdir' 1236s # deleting 'dir-target' 1236s # deleting 'dir2' 1236s # deleting 'target-file' 1236s # deleting 'normal_file-symlink' 1236s # deleting 'pattern_file' 1236s # deleting 'executable_file' 1236s # deleting 'private_file' 1236s # deleting 'normal_file2' 1236s # deleting 'UTF_příliš z' 1236s # deleting 'lost_symlink' 1236s # deleting 'dir_no-access' 1236s # deleting 'dir_no-write' 1236s # deleting 'target-file' 1236s # deleting 'normal_file' 1236s # deleting 'normal_file-symlink' 1236s # deleting 'executable_file~' 1236s # deleting 'private_file' 1236s # deleting 'normal_file2~' 1236s # deleting 'a' 1236s # deleting 'UTF_příliš z' 1236s # deleting 'dir_hidden' 1236s # deleting '.a-hidden-file' 1236s # deleting 'file-in-.hidden1' 1236s # deleting '.hidden' 1236s # deleting 'file-in-.hidden2' 1236s # deleting 'pattern_file' 1236s # deleting 'executable_file' 1236s # deleting 'normal_file2' 1236s # deleting 'not_exists2' 1236s # deleting 'not_exists3' 1236s # deleting 'not_exists4' 1236s ok 11 /live-g-file/final_clean 1236s # Start of test_unix_is_mountpoint tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1236s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_5GG2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1236s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1236s # End of test_unix_is_mountpoint tests 1236s # End of live-g-file tests 1236s TAP version 14 1236s # random seed: R02S1f3929a01190a9184fbc0fde667e4b1f 1236s 1..14 1236s # Start of conversion tests 1236s ok 1 /conversion/no-conv 1236s ok 2 /conversion/iconv-state 1236s ok 3 /conversion/illegal-sequence 1236s ok 4 /conversion/byte-order 1236s ok 5 /conversion/unicode 1236s ok 6 /conversion/filename-utf8 1236s ok 7 /conversion/filename-display 1236s ok 8 /conversion/convert-embedded-nul 1236s # Start of locale-to-utf8 tests 1236s ok 9 /conversion/locale-to-utf8/embedded-nul 1236s # Start of embedded-nul tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of embedded-nul tests 1236s # End of locale-to-utf8 tests 1236s # Start of locale-from-utf8 tests 1236s ok 10 /conversion/locale-from-utf8/embedded-nul 1236s # Start of embedded-nul tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of embedded-nul tests 1236s # End of locale-from-utf8 tests 1236s # Start of filename-to-utf8 tests 1236s ok 11 /conversion/filename-to-utf8/embedded-nul 1236s # Start of embedded-nul tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of embedded-nul tests 1236s # End of filename-to-utf8 tests 1236s # Start of filename-from-utf8 tests 1236s ok 12 /conversion/filename-from-utf8/embedded-nul 1236s # Start of embedded-nul tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of embedded-nul tests 1236s # End of filename-from-utf8 tests 1236s # Start of filename-from-uri tests 1236s ok 13 /conversion/filename-from-uri/query-is-ignored 1236s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1236s # End of filename-from-uri tests 1236s # End of conversion tests 1236s ok - glib/live-g-file.test 1236s # Running test: glib/convert.test 1236s ok - glib/convert.test 1236s # Running test: glib/testing.test 1236s TAP version 14 1236s # random seed: R02S8a67c35506a6b852f4ab208bbf524708 1236s 1..1 1236s # Start of assert tests 1236s ok 1 /assert/finalize_object 1236s # Start of finalize_object tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of finalize_object tests 1236s # End of assert tests 1236s ok - glib/testing.test 1237s # Running test: glib/giomodule.test 1237s TAP version 14 1237s # random seed: R02S000c78bb13c32a6d58c7e85c5384e71d 1237s 1..3 1237s # Start of giomodule tests 1237s ok 1 /giomodule/extension-point 1237s ok 2 /giomodule/module-scan-all 1237s ok 3 /giomodule/module-scan-all-with-scope 1237s # End of giomodule tests 1237s ok - glib/giomodule.test 1237s # Running test: glib/utils-c-89.test 1237s TAP version 14 1237s # random seed: R02Se2a65ef9d2b82b8a8577fc9303382bfc 1237s 1..41 1237s # Start of utils tests 1237s ok 1 /utils/language-names 1237s # Testing locale ‘en’ 1237s # Testing locale ‘sr@latin’ 1237s # Testing locale ‘fr_BE’ 1237s # Testing locale ‘sr_SR@latin’ 1237s # Testing locale ‘sr_SR@latin.UTF-8’ 1237s # Testing locale ‘sr@latin_invalid’ 1237s # Testing locale ‘sr.UTF-8@latin’ 1237s # Testing locale ‘sr.UTF-8_latin’ 1237s # Testing locale ‘sr.UTF-8@latin_invalid’ 1237s ok 2 /utils/locale-variants 1237s ok 3 /utils/version 1237s ok 4 /utils/appname 1237s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1237s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1237s ok 5 /utils/prgname-thread-safety 1237s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1237s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1237s ok 6 /utils/tmpdir 1237s ok 7 /utils/basic_bits 1237s ok 8 /utils/bits 1237s ok 9 /utils/swap 1237s ok 10 /utils/find-program 1237s ok 11 /utils/find-program-for-path 1237s ok 12 /utils/debug 1237s ok 13 /utils/codeset 1237s ok 14 /utils/codeset2 1237s ok 15 /utils/console-charset 1237s ok 16 /utils/gettext 1237s ok 17 /utils/username 1237s ok 18 /utils/realname 1237s ok 19 /utils/hostname 1237s ok 20 /utils/xdgdirs 1237s ok 21 /utils/specialdir 1237s # NAME: Ubuntu 1237s ok 22 /utils/os-info 1237s ok 23 /utils/clear-pointer 1237s ok 24 /utils/clear-pointer-cast 1237s ok 25 /utils/take-pointer 1237s ok 26 /utils/clear-source 1237s ok 27 /utils/misc-mem 1237s # /utils/aligned-mem summary: Aligned memory allocator 1237s # Alignment must not be zero 1237s # Alignment must be a power of two 1237s # Alignment must be a multiple of sizeof(void*) 1237s ok 28 /utils/aligned-mem 1237s # /utils/free-sized summary: Check that g_free_sized() works 1237s ok 29 /utils/free-sized 1237s ok 30 /utils/nullify 1237s ok 31 /utils/atexit 1237s ok 32 /utils/check-setuid 1237s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1237s ok 33 /utils/int-limits 1237s ok 34 /utils/clear-list 1237s ok 35 /utils/clear-slist 1237s ok 36 /utils/steal-handle-id 1237s # Start of specialdir tests 1237s ok 37 /utils/specialdir/desktop 1237s # End of specialdir tests 1237s # Start of clear-pointer tests 1237s ok 38 /utils/clear-pointer/side-effects 1237s # End of clear-pointer tests 1237s # Start of aligned-mem tests 1237s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1237s ok 39 /utils/aligned-mem/alignment 1237s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1237s ok 40 /utils/aligned-mem/zeroed 1237s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1237s ok 41 /utils/aligned-mem/free-sized 1237s # Start of subprocess tests 1237s # End of subprocess tests 1237s # End of aligned-mem tests 1237s # End of utils tests 1237s ok - glib/utils-c-89.test 1237s # Running test: glib/filenamecompleter.test 1237s TAP version 14 1237s # random seed: R02S785acb86d2ce369bcc4df4388504feb8 1237s 1..1 1237s # Start of filenamecompleter tests 1237s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/home 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/cache 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/system-config2 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/config 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/system-data2 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/data 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/state 1237s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_0UDME3/filenamecompleter/basic/.dirs/runtime 1237s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1237s ok 1 /filenamecompleter/basic 1237s # End of filenamecompleter tests 1237s ok - glib/filenamecompleter.test 1237s # Running test: glib/performance-threaded.test 1237s Running test "liststore-is-a" 1238s 17002 runs, min/avg/max = 0.057/0.059/0.258 ms 1238s Running test "liststore-interface-peek" 1238s # Executing: glib/performance-threaded.test 1239s 29390 runs, min/avg/max = 0.033/0.034/0.497 ms 1239s Running test "liststore-interface-peek-same" 1240s 30010 runs, min/avg/max = 0.032/0.033/0.220 ms 1240s ok - glib/performance-threaded.test 1240s # Running test: glib/guuid.test 1240s TAP version 14 1240s # random seed: R02S2884c214de14048a22184763e253290f 1240s 1..2 1240s # Start of uuid tests 1240s ok 1 /uuid/string 1240s ok 2 /uuid/random 1240s # End of uuid tests 1240s ok - glib/guuid.test 1240s # Running test: glib/gdbus-address-get-session.test 1240s TAP version 14 1240s # random seed: R02S76a837136a5a11a907e0346e7a746974 1240s ok - glib/gdbus-address-get-session.test 1240s # Running test: glib/pattern.test 1240s 1..2 1240s # Start of gdbus tests 1240s ok 1 /gdbus/x11-autolaunch 1240s ok 2 /gdbus/xdg-runtime 1240s # End of gdbus tests 1240s TAP version 14 1240s # random seed: R02S36eb7d68de371c2375b65142b4bb8a4c 1240s 1..90 1240s # Start of pattern tests 1240s # Start of compile tests 1240s ok 1 /pattern/compile/0 1240s ok 2 /pattern/compile/1 1240s ok 3 /pattern/compile/2 1240s ok 4 /pattern/compile/3 1240s ok 5 /pattern/compile/4 1240s ok 6 /pattern/compile/5 1240s ok 7 /pattern/compile/6 1240s ok 8 /pattern/compile/7 1240s ok 9 /pattern/compile/8 1240s ok 10 /pattern/compile/9 1240s ok 11 /pattern/compile/10 1240s ok 12 /pattern/compile/11 1240s ok 13 /pattern/compile/12 1240s ok 14 /pattern/compile/13 1240s # End of compile tests 1240s # Start of copy tests 1240s ok 15 /pattern/copy/0 1240s ok 16 /pattern/copy/1 1240s ok 17 /pattern/copy/2 1240s ok 18 /pattern/copy/3 1240s ok 19 /pattern/copy/4 1240s ok 20 /pattern/copy/5 1240s ok 21 /pattern/copy/6 1240s ok 22 /pattern/copy/7 1240s ok 23 /pattern/copy/8 1240s ok 24 /pattern/copy/9 1240s ok - glib/pattern.test 1240s # Running test: glib/array-test.test 1240s ok 25 /pattern/copy/10 1240s ok 26 /pattern/copy/11 1240s ok 27 /pattern/copy/12 1240s ok 28 /pattern/copy/13 1240s # End of copy tests 1240s # Start of match tests 1240s ok 29 /pattern/match/0 1240s ok 30 /pattern/match/1 1240s ok 31 /pattern/match/2 1240s ok 32 /pattern/match/3 1240s ok 33 /pattern/match/4 1240s ok 34 /pattern/match/5 1240s ok 35 /pattern/match/6 1240s ok 36 /pattern/match/7 1240s ok 37 /pattern/match/8 1240s ok 38 /pattern/match/9 1240s ok 39 /pattern/match/10 1240s ok 40 /pattern/match/11 1240s ok 41 /pattern/match/12 1240s ok 42 /pattern/match/13 1240s ok 43 /pattern/match/14 1240s ok 44 /pattern/match/15 1240s ok 45 /pattern/match/16 1240s ok 46 /pattern/match/17 1240s ok 47 /pattern/match/18 1240s ok 48 /pattern/match/19 1240s ok 49 /pattern/match/20 1240s ok 50 /pattern/match/21 1240s ok 51 /pattern/match/22 1240s ok 52 /pattern/match/23 1240s ok 53 /pattern/match/24 1240s ok 54 /pattern/match/25 1240s ok 55 /pattern/match/26 1240s ok 56 /pattern/match/27 1240s ok 57 /pattern/match/28 1240s ok 58 /pattern/match/29 1240s ok 59 /pattern/match/30 1240s ok 60 /pattern/match/31 1240s ok 61 /pattern/match/32 1240s ok 62 /pattern/match/33 1240s ok 63 /pattern/match/34 1240s ok 64 /pattern/match/35 1240s ok 65 /pattern/match/36 1240s ok 66 /pattern/match/37 1240s ok 67 /pattern/match/38 1240s ok 68 /pattern/match/39 1240s ok 69 /pattern/match/40 1240s ok 70 /pattern/match/41 1240s ok 71 /pattern/match/42 1240s ok 72 /pattern/match/43 1240s ok 73 /pattern/match/44 1240s ok 74 /pattern/match/45 1240s ok 75 /pattern/match/46 1240s ok 76 /pattern/match/47 1240s ok 77 /pattern/match/48 1240s ok 78 /pattern/match/49 1240s ok 79 /pattern/match/50 1240s # End of match tests 1240s # Start of equal tests 1240s ok 80 /pattern/equal/0 1240s ok 81 /pattern/equal/1 1240s ok 82 /pattern/equal/2 1240s ok 83 /pattern/equal/3 1240s ok 84 /pattern/equal/4 1240s ok 85 /pattern/equal/5 1240s ok 86 /pattern/equal/6 1240s ok 87 /pattern/equal/7 1240s ok 88 /pattern/equal/8 1240s ok 89 /pattern/equal/9 1240s ok 90 /pattern/equal/10 1240s # End of equal tests 1240s # End of pattern tests 1240s TAP version 14 1240s # random seed: R02S720926fdcdad2770f987f8694979488a 1240s 1..120 1240s # Start of array tests 1240s ok 1 /array/ref-count 1240s ok 2 /array/steal 1240s ok 3 /array/clear-func 1240s ok 4 /array/binary-search 1240s ok 5 /array/overflow-append-vals 1240s ok 6 /array/overflow-set-size 1240s # Start of new tests 1240s ok 7 /array/new/zero-terminated 1240s ok 8 /array/new/take 1240s ok 9 /array/new/take-zero-terminated 1240s # Start of take tests 1240s ok 10 /array/new/take/empty 1240s ok 11 /array/new/take/overflow 1240s ok 12 /array/new/take/zero-size 1240s # End of take tests 1240s # Start of take-zero-terminated tests 1240s ok 13 /array/new/take-zero-terminated/zero-size 1240s ok 14 /array/new/take-zero-terminated/null 1240s # End of take-zero-terminated tests 1240s # End of new tests 1240s # Start of copy tests 1240s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1240s ok 15 /array/copy/sized 1240s ok 16 /array/copy/zero-terminated 1240s ok 17 /array/copy/non-zero-terminated-no-clear 1240s ok 18 /array/copy/non-zero-terminated-clear 1240s ok 19 /array/copy/zero-terminated-no-clear 1240s ok 20 /array/copy/zero-terminated-clear 1240s # End of copy tests 1240s # Start of remove-range tests 1240s ok 21 /array/remove-range/zero-terminated-null 1240s ok 22 /array/remove-range/non-zero-terminated-no-clear 1240s ok 23 /array/remove-range/non-zero-terminated-clear 1240s ok 24 /array/remove-range/zero-terminated-no-clear 1240s ok 25 /array/remove-range/zero-terminated-clear 1240s # End of remove-range tests 1240s # Start of set-size tests 1240s ok 26 /array/set-size/zero-terminated-null 1240s ok 27 /array/set-size/non-zero-terminated-no-clear 1240s ok 28 /array/set-size/non-zero-terminated-clear 1240s ok 29 /array/set-size/zero-terminated-no-clear 1240s ok 30 /array/set-size/zero-terminated-clear 1240s # Start of sized tests 1240s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1240s ok 32 /array/set-size/sized/non-zero-terminated-clear 1240s ok 33 /array/set-size/sized/zero-terminated-no-clear 1240s ok 34 /array/set-size/sized/zero-terminated-clear 1240s # End of sized tests 1240s # End of set-size tests 1240s # Start of append-val tests 1240s ok 35 /array/append-val/non-zero-terminated-no-clear 1240s ok 36 /array/append-val/non-zero-terminated-clear 1240s ok 37 /array/append-val/zero-terminated-no-clear 1240s ok 38 /array/append-val/zero-terminated-clear 1240s # End of append-val tests 1240s # Start of prepend-val tests 1240s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1240s ok 40 /array/prepend-val/non-zero-terminated-clear 1240s ok 41 /array/prepend-val/zero-terminated-no-clear 1240s ok 42 /array/prepend-val/zero-terminated-clear 1240s # End of prepend-val tests 1240s # Start of prepend-vals tests 1240s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1240s ok 44 /array/prepend-vals/non-zero-terminated-clear 1240s ok 45 /array/prepend-vals/zero-terminated-no-clear 1240s ok 46 /array/prepend-vals/zero-terminated-clear 1240s # End of prepend-vals tests 1240s # Start of insert-vals tests 1240s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1240s ok 48 /array/insert-vals/non-zero-terminated-clear 1240s ok 49 /array/insert-vals/zero-terminated-no-clear 1240s ok 50 /array/insert-vals/zero-terminated-clear 1240s # End of insert-vals tests 1240s # Start of remove-index tests 1240s ok 51 /array/remove-index/non-zero-terminated-no-clear 1240s ok 52 /array/remove-index/non-zero-terminated-clear 1240s ok 53 /array/remove-index/zero-terminated-no-clear 1240s ok 54 /array/remove-index/zero-terminated-clear 1240s # End of remove-index tests 1240s # Start of remove-index-fast tests 1240s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1240s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1240s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1240s ok 58 /array/remove-index-fast/zero-terminated-clear 1240s # End of remove-index-fast tests 1240s # Start of sort tests 1240s ok 59 /array/sort/non-zero-terminated-no-clear 1240s ok 60 /array/sort/non-zero-terminated-clear 1240s ok 61 /array/sort/zero-terminated-no-clear 1240s ok 62 /array/sort/zero-terminated-clear 1240s # End of sort tests 1240s # Start of sort-with-data tests 1240s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1240s ok 64 /array/sort-with-data/non-zero-terminated-clear 1240s ok 65 /array/sort-with-data/zero-terminated-no-clear 1240s ok 66 /array/sort-with-data/zero-terminated-clear 1240s # End of sort-with-data tests 1240s # End of array tests 1240s # Start of pointerarray tests 1240s ok 67 /pointerarray/add 1240s ok 68 /pointerarray/insert 1240s ok 69 /pointerarray/new-take 1240s ok 70 /pointerarray/new-take-null-terminated 1240s ok 71 /pointerarray/new-from-array 1240s ok 72 /pointerarray/new-from-null-terminated-array 1240s ok 73 /pointerarray/free-func 1240s ok 74 /pointerarray/array_extend_and_steal 1240s ok 75 /pointerarray/sort 1240s ok 76 /pointerarray/sort-with-data 1240s ok 77 /pointerarray/sort-values 1240s ok 78 /pointerarray/sort-values-with-data 1240s ok 79 /pointerarray/remove-range 1240s ok 80 /pointerarray/steal 1240s # Start of free tests 1240s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1240s ok 81 /pointerarray/free/null-terminated 1240s # End of free tests 1240s # Start of new-take tests 1240s ok 82 /pointerarray/new-take/empty 1240s ok 83 /pointerarray/new-take/overflow 1240s ok 84 /pointerarray/new-take/with-free-func 1240s # End of new-take tests 1240s # Start of new-take-null-terminated tests 1240s ok 85 /pointerarray/new-take-null-terminated/empty 1240s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1240s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1240s # End of new-take-null-terminated tests 1240s # Start of new-from-array tests 1240s ok 88 /pointerarray/new-from-array/empty 1240s ok 89 /pointerarray/new-from-array/overflow 1240s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1240s # End of new-from-array tests 1240s # Start of new-from-null-terminated-array tests 1240s ok 91 /pointerarray/new-from-null-terminated-array/empty 1240s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1240s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1240s # End of new-from-null-terminated-array tests 1240s # Start of ref-count tests 1240s ok 94 /pointerarray/ref-count/not-null-terminated 1240s ok 95 /pointerarray/ref-count/null-terminated 1240s # End of ref-count tests 1240s # Start of array_copy tests 1240s # /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 1240s ok 96 /pointerarray/array_copy/not-null-terminated 1240s # /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 1240s ok 97 /pointerarray/array_copy/null-terminated 1240s # End of array_copy tests 1240s # Start of array_extend tests 1240s ok 98 /pointerarray/array_extend/not-null-terminated 1240s ok 99 /pointerarray/array_extend/null-terminated 1240s # End of array_extend tests 1240s # Start of sort tests 1240s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1240s ok 100 /pointerarray/sort/example 1240s # End of sort tests 1240s # Start of sort-with-data tests 1240s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1240s ok 101 /pointerarray/sort-with-data/example 1240s # End of sort-with-data tests 1240s # Start of sort-values tests 1240s ok 102 /pointerarray/sort-values/example 1240s # End of sort-values tests 1240s # Start of sort-values-with-data tests 1240s ok 103 /pointerarray/sort-values-with-data/example 1240s # End of sort-values-with-data tests 1240s # Start of find tests 1240s ok 104 /pointerarray/find/empty 1240s ok 105 /pointerarray/find/non-empty 1240s # End of find tests 1240s # Start of steal_index tests 1240s ok 106 /pointerarray/steal_index/not-null-terminated 1240s ok 107 /pointerarray/steal_index/null-terminated 1240s # End of steal_index tests 1240s # End of pointerarray tests 1240s # Start of bytearray tests 1240s ok 108 /bytearray/steal 1240s ok 109 /bytearray/append 1240s ok 110 /bytearray/prepend 1240s ok 111 /bytearray/remove 1240s ok 112 /bytearray/remove-fast 1240s ok 113 /bytearray/remove-range 1240s ok 114 /bytearray/ref-count 1240s ok 115 /bytearray/set-size 1240s ok - glib/array-test.test 1240s # Running test: glib/tree.test 1240s ok - glib/tree.test 1240s # Running test: glib/gdbus-non-socket.test 1240s ok - glib/gdbus-non-socket.test 1240s # Running test: glib/glistmodel.test 1240s ok - glib/glistmodel.test 1240s # Running test: glib/static-link.test 1240s ok 116 /bytearray/sort 1240s ok 117 /bytearray/sort-with-data 1240s ok 118 /bytearray/new-take 1240s ok 119 /bytearray/new-take-overflow 1240s ok 120 /bytearray/free-to-bytes 1240s # End of bytearray tests 1240s TAP version 14 1240s # random seed: R02S2fdb1e4854f3739cdcc68001ccd4330e 1240s 1..7 1240s # Start of tree tests 1240s ok 1 /tree/search 1240s ok 2 /tree/remove 1240s ok 3 /tree/destroy 1240s ok 4 /tree/traverse 1240s ok 5 /tree/insert 1240s ok 6 /tree/bounds 1240s ok 7 /tree/remove-all 1240s # End of tree tests 1240s TAP version 14 1240s # random seed: R02Sf1d1276b4d2624c722a53ccbfe941390 1240s 1..1 1240s # Start of gdbus tests 1240s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/home 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/cache 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/system-config2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/config 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/system-data2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/data 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/state 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_J3AKE3/gdbus/non-socket/.dirs/runtime 1240s ok 1 /gdbus/non-socket 1240s # End of gdbus tests 1240s TAP version 14 1240s # random seed: R02S7d86bf040ed38d159b1b288d1656d59d 1240s 1..18 1240s # Start of glistmodel tests 1240s # Start of store tests 1240s ok 1 /glistmodel/store/properties 1240s ok 2 /glistmodel/store/non-gobjects 1240s ok 3 /glistmodel/store/boundaries 1240s ok 4 /glistmodel/store/refcounts 1240s ok 5 /glistmodel/store/sorted 1240s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1240s ok 6 /glistmodel/store/splice-replace-middle 1240s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1240s ok 7 /glistmodel/store/splice-replace-all 1240s ok 8 /glistmodel/store/splice-noop 1240s ok 9 /glistmodel/store/splice-remove-multiple 1240s ok 10 /glistmodel/store/splice-add-multiple 1240s ok 11 /glistmodel/store/splice-wrong-type 1240s ok 12 /glistmodel/store/item-type 1240s ok 13 /glistmodel/store/remove-all 1240s ok 14 /glistmodel/store/sort 1240s ok 15 /glistmodel/store/get-item-cache 1240s ok 16 /glistmodel/store/items-changed 1240s ok 17 /glistmodel/store/past-end 1240s ok 18 /glistmodel/store/find 1240s # End of store tests 1240s # End of glistmodel tests 1240s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1240s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1240s and make sure you have glib build dependencies installed, including 1240s meson. 1240s ok # SKIP - glib/static-link.test 1240s # Running test: glib/1bit-mutex.test 1240s TAP version 14 1240s # random seed: R02S4a9222919771ae6c5b8fcd1d76146e8a 1240s 1..2 1240s # Start of glib tests 1240s # Start of 1bit-mutex tests 1243s # Executing: glib/1bit-mutex.test 1243s ok 1 /glib/1bit-mutex/int 1243s # slow test /glib/1bit-mutex/int executed in 3.76 secs 1247s ok - glib/1bit-mutex.test 1247s ok 2 /glib/1bit-mutex/pointer 1247s # slow test /glib/1bit-mutex/pointer executed in 3.71 secs 1247s # End of 1bit-mutex tests 1247s # End of glib tests 1247s # Running test: glib/gdbus-method-invocation.test 1247s TAP version 14 1247s # random seed: R02S29c7bfd5b6690794bc62ae07133aed83 1247s 1..1 1247s # Start of gdbus tests 1247s # Start of method-invocation tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_QQ6UE3/gdbus/method-invocation/return/.dirs/runtime 1247s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1247s # Calling org.freedesktop.DBus.Properties.Get 1247s ok - glib/gdbus-method-invocation.test 1247s # Running test: glib/portal-support-env-var.test 1247s ok - glib/portal-support-env-var.test 1247s # Running test: glib/credentials.test 1247s ok - glib/credentials.test 1247s # Running test: glib/gdbus-connection-loss.test 1247s # Calling org.freedesktop.DBus.Properties.Get 1247s # Calling org.freedesktop.DBus.Properties.Get 1247s # Calling org.freedesktop.DBus.Properties.Set 1247s # Calling org.freedesktop.DBus.Properties.GetAll 1247s # Calling org.example.Foo.WrongReturnType 1247s # Calling org.example.Foo.GetFDs 1247s # Calling org.example.Foo.GetFDs 1247s # Calling org.example.Foo.ReturnError 1247s # Calling org.example.Foo.CloseBeforeReturning 1247s ok 1 /gdbus/method-invocation/return 1247s # End of method-invocation tests 1247s # End of gdbus tests 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s TAP version 14 1247s # random seed: R02S3cb924e8cbbc3bb70a8e71723a3d74ce 1247s 1..1 1247s # Start of portal-support tests 1247s ok 1 /portal-support/env-var 1247s # End of portal-support tests 1247s TAP version 14 1247s # random seed: R02S5baddee07ca719d33fab2d69a54f29cc 1247s 1..1 1247s # Start of credentials tests 1247s # GCredentials:linux-ucred:pid=39179,uid=1000,gid=1000 1247s # GCredentials:linux-ucred:pid=39179,uid=0,gid=1000 1247s ok 1 /credentials/basic 1247s # End of credentials tests 1247s TAP version 14 1247s # random seed: R02S97b3d2b0c32ac86eab37318d5e26385e 1247s 1..1 1247s # Start of gdbus tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_SYBUE3/gdbus/connection-loss/.dirs/runtime 1247s ok 1 /gdbus/connection-loss 1247s # End of gdbus tests 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1247s ok - glib/gdbus-connection-loss.test 1247s # Running test: glib/types.test 1247s TAP version 14 1247s # random seed: R02Sedd88d88b1dbd6ff6526d5c09f225c03 1247s 1..1 1247s # Start of types tests 1247s ok 1 /types/basic_types 1247s # End of types tests 1247s ok - glib/types.test 1247s # Running test: glib/spawn-test.test 1247s TAP version 14 1247s # random seed: R02S3d3c5f8e0bb4c7127fdbdec6d75412cb 1247s 1..2 1247s # Start of spawn tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_JD92E3/spawn/basics/.dirs/runtime 1247s ok 1 /spawn/basics 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_JD92E3/spawn/stdio-overwrite/.dirs/runtime 1247s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1247s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1247s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1247s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1247s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1247s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1247s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1247s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1247s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1247s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1247s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1247s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1247s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1247s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1247s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1247s ok - glib/spawn-test.test 1247s # Running test: glib/tls-interaction.test 1247s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1247s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1247s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1247s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1247s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1247s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1247s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1247s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1247s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1247s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1247s # Fetching GSpawn result with stdin open, stdout open, stderr open 1247s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1247s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1247s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1247s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1247s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1247s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1247s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1247s ok 2 /spawn/stdio-overwrite 1247s # End of spawn tests 1247s TAP version 14 1247s # random seed: R02Se38dfc8d04f2e0a100df371c9f68e112 1247s 1..42 1247s # Start of tls-interaction tests 1247s # Start of ask-password tests 1247s # Start of invoke-with-loop tests 1247s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1247s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1247s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1247s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1247s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1247s # End of invoke-with-loop tests 1247s # Start of invoke-without-loop tests 1247s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1247s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1247s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1247s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1247s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1247s # End of invoke-without-loop tests 1247s # Start of invoke-in-loop tests 1247s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1247s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1247s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1247s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1247s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1247s # End of invoke-in-loop tests 1247s # Start of sync tests 1247s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1247s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1247s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1247s # End of sync tests 1247s # Start of async tests 1247s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1247s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1247s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1247s # End of async tests 1247s # End of ask-password tests 1247s # Start of request-certificate tests 1247s # Start of invoke-with-loop tests 1247s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1247s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1247s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1247s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1247s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1247s # End of invoke-with-loop tests 1247s # Start of invoke-without-loop tests 1247s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1247s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1247s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1247s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1247s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1247s # End of invoke-without-loop tests 1247s # Start of invoke-in-loop tests 1247s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1247s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1247s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1247s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1247s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1247s # End of invoke-in-loop tests 1247s # Start of sync tests 1247s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1247s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1247s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1247s # End of sync tests 1247s # Start of async tests 1247s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1247s ok - glib/tls-interaction.test 1247s # Running test: glib/simple-proxy.test 1247s ok - glib/simple-proxy.test 1247s # Running test: glib/gdbus-server-auth.test 1247s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1247s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1247s # End of async tests 1247s # End of request-certificate tests 1247s # End of tls-interaction tests 1247s TAP version 14 1247s # random seed: R02Sdfb5048c93736ffaad34104a33fde5e0 1247s 1..3 1247s # Start of static-proxy tests 1247s ok 1 /static-proxy/uri 1247s ok 2 /static-proxy/socks 1247s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1247s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1247s ok 3 /static-proxy/ignore 1247s # End of static-proxy tests 1247s TAP version 14 1247s # random seed: R02S027619ff2e1fff09e785c255984fef87 1247s 1..9 1247s # Start of gdbus tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/.dirs/runtime 1247s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-66V1E3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1247s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-66V1E3/dbus-Y6TrEAmY 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39255 1247s ok 1 /gdbus/server-auth 1247s # Start of server-auth tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/abstract/.dirs/runtime 1247s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-SU90E3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1247s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-SU90E3/dbus-nt6l4d4P 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1247s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1247s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39255 1247s ok 2 /gdbus/server-auth/abstract 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/tcp/.dirs/runtime 1247s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1247s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/.dirs/runtime 1247s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-9RZ0E3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1247s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-9RZ0E3/dbus-95EdGAiM 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39255 1247s ok 4 /gdbus/server-auth/anonymous 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/.dirs/runtime 1247s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-6OK0E3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1247s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-6OK0E3/dbus-dHVG9dlu 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39255 1247s ok 5 /gdbus/server-auth/external 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/.dirs/runtime 1247s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-SHA0E3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1247s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1247s # Start of anonymous tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1247s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1247s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1247s # End of anonymous tests 1247s # Start of external tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1247s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-W59ZE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1247s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QVV1E3/gdbus-server-auth-W59ZE3/dbus-x1pfxkGf 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s ok - glib/gdbus-server-auth.test 1247s # Running test: glib/unicode-encoding.test 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39255 1247s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1247s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1247s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1247s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39255,uid=1000,gid=1000 1247s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39255 1247s ok 8 /gdbus/server-auth/external/require-same-user 1247s # End of external tests 1247s # Start of sha1 tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QVV1E3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1247s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1247s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1247s # End of sha1 tests 1247s # End of server-auth tests 1247s # End of gdbus tests 1247s ok - glib/unicode-encoding.test 1247s # Running test: glib/unix-mounts.test 1247s TAP version 14 1247s # random seed: R02Sae47244e11a31441c0fb3a26bbcb8580 1247s 1..1 1247s # Start of unicode tests 1247s ok 1 /unicode/encoding 1247s # End of unicode tests 1247s TAP version 14 1247s # random seed: R02S06f11c9a672a8fcc3fdf5577fc26f234 1247s 1..4 1247s # Start of unix-mounts tests 1247s ok 1 /unix-mounts/is-system-fs-type 1247s ok 2 /unix-mounts/is-system-device-path 1247s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1247s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1247s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1247s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1247s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1247s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1247s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1247s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1247s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1247s ok 3 /unix-mounts/get-mount-points 1247s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1247s ok 4 /unix-mounts/get-mount-entries 1247s # End of unix-mounts tests 1247s ok - glib/unix-mounts.test 1247s # Running test: glib/list.test 1247s TAP version 14 1247s # random seed: R02S0b505ae70fa81849c541a5724d9ec6a8 1247s 1..20 1247s # Start of list tests 1247s ok 1 /list/sort 1247s ok 2 /list/sort-with-data 1247s ok 3 /list/insert-before-link 1247s ok 4 /list/insert-sorted 1247s ok 5 /list/insert-sorted-with-data 1247s ok 6 /list/reverse 1247s ok 7 /list/nth 1247s ok 8 /list/concat 1247s ok 9 /list/remove 1247s ok 10 /list/remove-all 1247s ok 11 /list/first-last 1247s ok 12 /list/insert 1247s ok 13 /list/free-full 1247s ok 14 /list/copy 1247s ok 15 /list/copy-deep 1247s ok 16 /list/delete-link 1247s ok 17 /list/prepend 1247s ok 18 /list/position 1247s ok 19 /list/double-free 1247s # Start of sort tests 1247s ok 20 /list/sort/stable 1247s # End of sort tests 1247s # End of list tests 1247s ok - glib/list.test 1247s # Running test: glib/utils-c-17.test 1247s TAP version 14 1247s # random seed: R02Se80ca982a28930b87eaf22387e7e6b90 1247s 1..41 1247s # Start of utils tests 1247s ok 1 /utils/language-names 1247s # Testing locale ‘en’ 1247s # Testing locale ‘sr@latin’ 1247s # Testing locale ‘fr_BE’ 1247s # Testing locale ‘sr_SR@latin’ 1247s # Testing locale ‘sr_SR@latin.UTF-8’ 1247s # Testing locale ‘sr@latin_invalid’ 1247s # Testing locale ‘sr.UTF-8@latin’ 1247s # Testing locale ‘sr.UTF-8_latin’ 1247s # Testing locale ‘sr.UTF-8@latin_invalid’ 1247s ok 2 /utils/locale-variants 1247s ok 3 /utils/version 1247s ok 4 /utils/appname 1247s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1247s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1248s ok 5 /utils/prgname-thread-safety 1248s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1248s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1248s ok 6 /utils/tmpdir 1248s ok 7 /utils/basic_bits 1248s ok 8 /utils/bits 1248s ok 9 /utils/swap 1248s ok 10 /utils/find-program 1248s ok 11 /utils/find-program-for-path 1248s ok 12 /utils/debug 1248s ok 13 /utils/codeset 1248s ok 14 /utils/codeset2 1248s ok 15 /utils/console-charset 1248s ok 16 /utils/gettext 1248s ok 17 /utils/username 1248s ok 18 /utils/realname 1248s ok 19 /utils/hostname 1248s ok 20 /utils/xdgdirs 1248s ok 21 /utils/specialdir 1248s # NAME: Ubuntu 1248s ok 22 /utils/os-info 1248s ok 23 /utils/clear-pointer 1248s ok 24 /utils/clear-pointer-cast 1248s ok 25 /utils/take-pointer 1248s ok 26 /utils/clear-source 1248s ok 27 /utils/misc-mem 1248s # /utils/aligned-mem summary: Aligned memory allocator 1248s # Alignment must not be zero 1248s # Alignment must be a power of two 1248s # Alignment must be a multiple of sizeof(void*) 1248s ok 28 /utils/aligned-mem 1248s # /utils/free-sized summary: Check that g_free_sized() works 1248s ok 29 /utils/free-sized 1248s ok 30 /utils/nullify 1248s ok 31 /utils/atexit 1248s ok 32 /utils/check-setuid 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1248s ok 33 /utils/int-limits 1248s ok 34 /utils/clear-list 1248s ok 35 /utils/clear-slist 1248s ok 36 /utils/steal-handle-id 1248s # Start of specialdir tests 1248s ok 37 /utils/specialdir/desktop 1248s # End of specialdir tests 1248s # Start of clear-pointer tests 1248s ok 38 /utils/clear-pointer/side-effects 1248s # End of clear-pointer tests 1248s # Start of aligned-mem tests 1248s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1248s ok 39 /utils/aligned-mem/alignment 1248s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1248s ok 40 /utils/aligned-mem/zeroed 1248s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1248s ok 41 /utils/aligned-mem/free-sized 1248s # Start of subprocess tests 1248s # End of subprocess tests 1248s # End of aligned-mem tests 1248s # End of utils tests 1248s ok - glib/utils-c-17.test 1248s # Running test: glib/socket-service.test 1248s TAP version 14 1248s # random seed: R02Sb1c42c40b05b90ef2e9d1ed4eebc7cb0 1248s 1..4 1248s # Start of socket-service tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc1bf0f0bf200 and GSocketClientAsyncConnectData 0xc1bf0f0b9f00 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s ok 1 /socket-service/start-stop 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc1bf0f0c32d0 and GSocketClientAsyncConnectData 0xc1bf0f0c2f30 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc1bf0f0c3250 for GSocketClientAsyncConnectData 0xc1bf0f0b9f00 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc1bf0f0c3250 for GSocketClientAsyncConnectData 0xc1bf0f0c2f30 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 2 /socket-service/read_write_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc1bf0f0c32d0 and GSocketClientAsyncConnectData 0xc1bf0f0c6980 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc1bf0f0c5e00 for GSocketClientAsyncConnectData 0xc1bf0f0c6980 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 3 /socket-service/read_writev_async 1248s # Start of threaded tests 1248s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc1bf0f0b7a70 and GSocketClientAsyncConnectData 0xc1bf0f0c2f30 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc1bf0f0c6b40 for GSocketClientAsyncConnectData 0xc1bf0f0c2f30 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok - glib/socket-service.test 1248s ok 4 /socket-service/threaded/712570 1248s # End of threaded tests 1248s # End of socket-service tests 1248s # Running test: glib/file-enumerator.test 1248s TAP version 14 1248s # random seed: R02S2230ec2ff7496801a64110b61403a179 1248s 1..1 1248s # Start of file-enumerator tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1248s ok 1 /file-enumerator/close-on-dispose 1248s # End of file-enumerator tests 1248s ok - glib/file-enumerator.test 1248s # Running test: glib/node.test 1248s ok - glib/node.test 1248s TAP version 14 1248s # random seed: R02Sc13e45c30ff20cbf217a3677851ad6de 1248s 1..6 1248s # Start of node tests 1248s ok 1 /node/allocation 1248s ok 2 /node/construction 1248s ok 3 /node/traversal 1248s ok 4 /node/misc 1248s ok 5 /node/unlink 1248s ok 6 /node/copy 1248s # End of node tests 1248s # Running test: glib/gobject-private.test 1248s TAP version 14 1248s # random seed: R02S49b51db2dcae73d734ca2246bd1f86d9 1248s 1..3 1248s # Start of private tests 1248s ok 1 /private/instance 1248s ok 2 /private/derived-instance 1248s ok 3 /private/mixed-derived-instance 1248s # End of private tests 1248s ok - glib/gobject-private.test 1248s # Running test: glib/struct-info.test 1248s TAP version 14 1248s # random seed: R02S4600dea1a5724e4f098351f40280fe83 1248s 1..4 1248s # Start of struct-info tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_QIULE3/struct-info/field-iterators/.dirs/runtime 1248s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1248s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1248s ok 1 /struct-info/field-iterators 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_QIULE3/struct-info/sizeof-gvalue/.dirs/runtime 1248s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1248s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1248s ok 2 /struct-info/sizeof-gvalue 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_QIULE3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1248s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1248s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1248s ok 3 /struct-info/is-pointer-for-struct-method-arg 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_QIULE3/struct-info/boxed/.dirs/runtime 1248s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1248s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1248s ok 4 /struct-info/boxed 1248s # End of struct-info tests 1248s ok - glib/struct-info.test 1248s # Running test: glib/unicode.test 1248s TAP version 14 1248s # random seed: R02Saf0b465c258f19023e5af5711adbc95a 1248s 1..39 1248s # Start of unicode tests 1248s ok 1 /unicode/alnum 1248s ok 2 /unicode/alpha 1248s ok 3 /unicode/break-type 1248s ok 4 /unicode/canonical-decomposition 1248s ok 5 /unicode/casefold 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s # Cannot set locale to lt_LT, skipping 1248s ok 6 /unicode/casemap_and_casefold 1248s ok 7 /unicode/cases 1248s ok 8 /unicode/character-type 1248s ok 9 /unicode/cntrl 1248s ok 10 /unicode/combining-class 1248s # Composing U+000041 and U+000042; expecting U+000000 1248s # Composing U+000041 and U+000000; expecting U+000000 1248s # Composing U+000066 and U+000069; expecting U+000000 1248s # Composing U+000308 and U+000301; expecting U+000000 1248s # Composing U+000f71 and U+000f72; expecting U+000000 1248s # Composing U+00212b and U+000000; expecting U+000000 1248s # Composing U+0000c5 and U+000000; expecting U+000000 1248s # Composing U+002126 and U+000000; expecting U+000000 1248s # Composing U+0003a9 and U+000000; expecting U+000000 1248s # Composing U+000041 and U+00030a; expecting U+0000c5 1248s # Composing U+00006f and U+000302; expecting U+0000f4 1248s # Composing U+001e63 and U+000307; expecting U+001e69 1248s # Composing U+000073 and U+000323; expecting U+001e63 1248s # Composing U+000064 and U+000307; expecting U+001e0b 1248s # Composing U+000064 and U+000323; expecting U+001e0d 1248s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1248s # Composing U+001111 and U+001171; expecting U+00d4cc 1248s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1248s # Composing U+00110e and U+001173; expecting U+00ce20 1248s # Composing U+001100 and U+001160; expecting U+000000 1248s # Composing U+001100 and U+001177; expecting U+000000 1248s # Composing U+00abff and U+0011b6; expecting U+000000 1248s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1248s # Composing U+00ac01 and U+0011b6; expecting U+000000 1248s # Composing U+00d4cc and U+0011a6; expecting U+000000 1248s # Composing U+00d4cc and U+0011c4; expecting U+000000 1248s # Composing U+01611e and U+01611e; expecting U+016121 1248s # Composing U+01611e and U+01611f; expecting U+016123 1248s # Composing U+0000f6 and U+000304; expecting U+00022b 1248s # Composing U+000b47 and U+000b57; expecting U+000b4c 1248s # Composing U+0000a0 and U+000b57; expecting U+000000 1248s # Composing U+016e00 and U+00030a; expecting U+000000 1248s # Composing U+00212b and U+016e00; expecting U+000000 1248s # Composing U+001e63 and U+000306; expecting U+000000 1248s # Composing U+001e63 and U+000304; expecting U+000000 1248s # Composing U+001e63 and U+000b57; expecting U+000000 1248s # Composing U+001e63 and U+000000; expecting U+000000 1248s # Composing U+001e63 and U+0113c2; expecting U+000000 1248s # Composing U+001f01 and U+0113c2; expecting U+000000 1248s # Composing U+00006e and U+000302; expecting U+000000 1248s # Composing U+001e63 and U+01611f; expecting U+000000 1248s # Composing U+01138e and U+0113b8; expecting U+000000 1248s # Composing U+01611e and U+000000; expecting U+000000 1248s # Composing U+000000 and U+01611f; expecting U+000000 1248s # Composing U+011390 and U+0113c2; expecting U+000000 1248s ok 11 /unicode/compose 1248s ok 12 /unicode/decompose 1248s ok 13 /unicode/decompose-tail 1248s ok 14 /unicode/defined 1248s ok 15 /unicode/digit 1248s ok 16 /unicode/digit-value 1248s # Fully decomposing U+000041; expecting 1 codepoints 1248s # Fully decomposing U+00fb01; expecting 1 codepoints 1248s # Fully decomposing U+00212b; expecting 2 codepoints 1248s # Fully decomposing U+002126; expecting 1 codepoints 1248s # Fully decomposing U+000344; expecting 2 codepoints 1248s # Fully decomposing U+000f73; expecting 2 codepoints 1248s # Fully decomposing U+0000c5; expecting 2 codepoints 1248s # Fully decomposing U+0000f4; expecting 2 codepoints 1248s # Fully decomposing U+001e69; expecting 3 codepoints 1248s # Fully decomposing U+001e63; expecting 2 codepoints 1248s # Fully decomposing U+001e0b; expecting 2 codepoints 1248s # Fully decomposing U+001e0d; expecting 2 codepoints 1248s # Fully decomposing U+00d4db; expecting 3 codepoints 1248s # Fully decomposing U+00d4cc; expecting 2 codepoints 1248s # Fully decomposing U+00ce31; expecting 3 codepoints 1248s # Fully decomposing U+00ce20; expecting 2 codepoints 1248s ok 17 /unicode/fully-decompose-canonical 1248s ok - glib/unicode.test 1248s ok 18 /unicode/fully-decompose-len 1248s ok 19 /unicode/normalization 1248s ok 20 /unicode/graph 1248s # Testing script Zyyy (code 1517910393) 1248s # Testing script Zinh (code 1516858984) 1248s # Testing script Zmth (code 1517122664) 1248s # Testing script Arab (code 1098015074) 1248s # Testing script Armn (code 1098018158) 1248s # Testing script Beng (code 1113943655) 1248s # Testing script Bopo (code 1114599535) 1248s # Testing script Cher (code 1130915186) 1248s # Testing script Copt (code 1131376756) 1248s # Testing script Cyrl (code 1132032620) 1248s # Testing script Dsrt (code 1148416628) 1248s # Testing script Deva (code 1147500129) 1248s # Testing script Ethi (code 1165256809) 1248s # Testing script Geor (code 1197830002) 1248s # Testing script Goth (code 1198486632) 1248s # Testing script Grek (code 1198679403) 1248s # Testing script Gujr (code 1198877298) 1248s # Testing script Guru (code 1198879349) 1248s # Testing script Hani (code 1214344809) 1248s # Testing script Hang (code 1214344807) 1248s # Testing script Hebr (code 1214603890) 1248s # Testing script Hira (code 1214870113) 1248s # Testing script Knda (code 1265525857) 1248s # Testing script Kana (code 1264676449) 1248s # Testing script Khmr (code 1265134962) 1248s # Testing script Laoo (code 1281453935) 1248s # Testing script Latn (code 1281455214) 1248s # Testing script Mlym (code 1298954605) 1248s # Testing script Mong (code 1299148391) 1248s # Testing script Mymr (code 1299803506) 1248s # Testing script Ogam (code 1332175213) 1248s # Testing script Ital (code 1232363884) 1248s # Testing script Orya (code 1332902241) 1248s # Testing script Runr (code 1383427698) 1248s # Testing script Sinh (code 1399418472) 1248s # Testing script Syrc (code 1400468067) 1248s # Testing script Taml (code 1415671148) 1248s # Testing script Telu (code 1415933045) 1248s # Testing script Thaa (code 1416126817) 1248s # Testing script Thai (code 1416126825) 1248s # Testing script Tibt (code 1416192628) 1248s # Testing script Cans (code 1130458739) 1248s # Testing script Yiii (code 1500080489) 1248s # Testing script Tglg (code 1416064103) 1248s # Testing script Hano (code 1214344815) 1248s # Testing script Buhd (code 1114990692) 1248s # Testing script Tagb (code 1415669602) 1248s # Testing script Brai (code 1114792297) 1248s # Testing script Cprt (code 1131442804) 1248s # Testing script Limb (code 1281977698) 1248s # Testing script Osma (code 1332964705) 1248s # Testing script Shaw (code 1399349623) 1248s # Testing script Linb (code 1281977954) 1248s # Testing script Tale (code 1415670885) 1248s # Testing script Ugar (code 1432838514) 1248s # Testing script Talu (code 1415670901) 1248s # Testing script Bugi (code 1114990441) 1248s # Testing script Glag (code 1198285159) 1248s # Testing script Tfng (code 1415999079) 1248s # Testing script Sylo (code 1400466543) 1248s # Testing script Xpeo (code 1483761007) 1248s # Testing script Khar (code 1265131890) 1248s # Testing script Zzzz (code 1517976186) 1248s # Testing script Bali (code 1113681001) 1248s # Testing script Xsux (code 1483961720) 1248s # Testing script Phnx (code 1349021304) 1248s # Testing script Phag (code 1349017959) 1248s # Testing script Nkoo (code 1315663727) 1248s # Testing script Kali (code 1264675945) 1248s # Testing script Lepc (code 1281716323) 1248s # Testing script Rjng (code 1382706791) 1248s # Testing script Sund (code 1400204900) 1248s # Testing script Saur (code 1398895986) 1248s # Testing script Cham (code 1130914157) 1248s # Testing script Olck (code 1332503403) 1248s # Testing script Vaii (code 1449224553) 1248s # Testing script Cari (code 1130459753) 1248s # Testing script Lyci (code 1283023721) 1248s # Testing script Lydi (code 1283023977) 1248s # Testing script Avst (code 1098281844) 1248s # Testing script Bamu (code 1113681269) 1248s # Testing script Egyp (code 1164409200) 1248s # Testing script Armi (code 1098018153) 1248s # Testing script Phli (code 1349020777) 1248s # Testing script Prti (code 1349678185) 1248s # Testing script Java (code 1247901281) 1248s # Testing script Kthi (code 1265920105) 1248s # Testing script Lisu (code 1281979253) 1248s # Testing script Mtei (code 1299473769) 1248s # Testing script Sarb (code 1398895202) 1248s # Testing script Orkh (code 1332898664) 1248s # Testing script Samr (code 1398893938) 1248s # Testing script Lana (code 1281453665) 1248s # Testing script Tavt (code 1415673460) 1248s # Testing script Batk (code 1113683051) 1248s # Testing script Brah (code 1114792296) 1248s # Testing script Mand (code 1298230884) 1248s # Testing script Cakm (code 1130457965) 1248s # Testing script Merc (code 1298494051) 1248s # Testing script Mero (code 1298494063) 1248s # Testing script Plrd (code 1349284452) 1248s # Testing script Shrd (code 1399353956) 1248s # Testing script Sora (code 1399812705) 1248s # Testing script Takr (code 1415670642) 1248s # Testing script Bass (code 1113682803) 1248s # Testing script Aghb (code 1097295970) 1248s # Testing script Dupl (code 1148547180) 1248s # Testing script Elba (code 1164730977) 1248s # Testing script Gran (code 1198678382) 1248s # Testing script Khoj (code 1265135466) 1248s # Testing script Sind (code 1399418468) 1248s # Testing script Lina (code 1281977953) 1248s # Testing script Mahj (code 1298229354) 1248s # Testing script Mani (code 1298230889) 1248s # Testing script Mend (code 1298493028) 1248s # Testing script Modi (code 1299145833) 1248s # Testing script Mroo (code 1299345263) 1248s # Testing script Nbat (code 1315070324) 1248s # Testing script Narb (code 1315009122) 1248s # Testing script Perm (code 1348825709) 1248s # Testing script Hmng (code 1215131239) 1248s # Testing script Palm (code 1348562029) 1248s # Testing script Pauc (code 1348564323) 1248s # Testing script Phlp (code 1349020784) 1248s # Testing script Sidd (code 1399415908) 1248s # Testing script Tirh (code 1416196712) 1248s # Testing script Wara (code 1466004065) 1248s # Testing script Ahom (code 1097363309) 1248s # Testing script Hluw (code 1215067511) 1248s # Testing script Hatr (code 1214346354) 1248s # Testing script Mult (code 1299541108) 1248s # Testing script Hung (code 1215655527) 1248s # Testing script Sgnw (code 1399287415) 1248s # Testing script Adlm (code 1097100397) 1248s # Testing script Bhks (code 1114139507) 1248s # Testing script Marc (code 1298231907) 1248s # Testing script Newa (code 1315272545) 1248s # Testing script Osge (code 1332963173) 1248s # Testing script Tang (code 1415671399) 1248s # Testing script Gonm (code 1198485101) 1248s # Testing script Nshu (code 1316186229) 1248s # Testing script Soyo (code 1399814511) 1248s # Testing script Zanb (code 1516334690) 1248s # Testing script Dogr (code 1148151666) 1248s # Testing script Gong (code 1198485095) 1248s # Testing script Rohg (code 1383032935) 1248s # Testing script Maka (code 1298230113) 1248s # Testing script Medf (code 1298490470) 1248s # Testing script Sogo (code 1399809903) 1248s # Testing script Sogd (code 1399809892) 1248s # Testing script Elym (code 1164736877) 1248s # Testing script Nand (code 1315008100) 1248s # Testing script Hmnp (code 1215131248) 1248s # Testing script Wcho (code 1466132591) 1248s # Testing script Chrs (code 1130918515) 1248s # Testing script Diak (code 1147756907) 1248s # Testing script Kits (code 1265202291) 1248s # Testing script Yezi (code 1499822697) 1248s # Testing script Cpmn (code 1131441518) 1248s # Testing script Ougr (code 1333094258) 1248s # Testing script Tnsa (code 1416524641) 1248s # Testing script Toto (code 1416590447) 1248s # Testing script Vith (code 1449751656) 1248s # Testing script Kawi (code 1264678761) 1248s # Testing script Nagm (code 1315006317) 1248s # Testing script Todr (code 1416586354) 1248s # Testing script Gara (code 1197568609) 1248s # Testing script Tutg (code 1416983655) 1248s # Testing script Sunu (code 1400204917) 1248s # Testing script Gukh (code 1198877544) 1248s # Testing script Krai (code 1265787241) 1248s # Testing script Onao (code 1332633967) 1248s ok 21 /unicode/iso15924 1248s ok 22 /unicode/lower 1248s ok 23 /unicode/mark 1248s ok 24 /unicode/mirror 1248s ok 25 /unicode/print 1248s ok 26 /unicode/punctuation 1248s ok 27 /unicode/script 1248s ok 28 /unicode/space 1248s ok 29 /unicode/strdown 1248s ok 30 /unicode/strup 1248s ok 31 /unicode/turkish-strupdown 1248s ok 32 /unicode/title 1248s ok 33 /unicode/upper 1248s ok 34 /unicode/validate 1248s ok 35 /unicode/wide 1248s ok 36 /unicode/xdigit 1248s ok 37 /unicode/xdigit-value 1248s ok 38 /unicode/zero-width 1248s ok 39 /unicode/normalize 1248s # End of unicode tests 1248s # Running test: glib/markup.test 1248s TAP version 14 1248s # random seed: R02Sf401e7b861ac40583da2efbe4348d886 1248s 1..1 1248s # Start of markup tests 1248s ok 1 /markup/stack 1248s # End of markup tests 1248s ok - glib/markup.test 1248s # Running test: glib/readwrite.test 1248s TAP version 14 1248s # random seed: R02S92233627610cb75974fa949ed7fde1e0 1248s 1..3 1248s # Start of readwrite tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1248s ok 1 /readwrite/test_g_file_open_readwrite 1248s ok 2 /readwrite/test_g_file_create_readwrite 1248s ok 3 /readwrite/test_g_file_replace_readwrite 1248s # End of readwrite tests 1248s ok - glib/readwrite.test 1248s # Running test: glib/gi-inspect-typelib.py.test 1248s TAP version 13 1248s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpasl6zl0k 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1248s # Return code: 0 1248s # Output: 1248s # Usage: 1248s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1248s # 1248s # Help Options: 1248s # -h, --help Show help options 1248s # 1248s # Application Options: 1248s # --typelib-version=VERSION Typelib version to inspect 1248s # --print-shlibs List the shared libraries the typelib requires 1248s # --print-typelibs List other typelibs the inspected typelib requires 1248s # Error: 1248s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpksngnl1g 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1248s # Return code: 1 1248s # Output: 1248s # 1248s # Error: 1248s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1248s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpgeb_ajln 1248s # Running: ['/usr/bin/gi-inspect-typelib'] 1248s # Return code: 1 1248s # Output: 1248s # 1248s # Error: 1248s # Please specify exactly one namespace 1248s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpjcdt6tk4 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgobject-2.0.so.0 1248s # shlib: libglib-2.0.so.0 1248s # Error: 1248s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpi8mbpefn 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # 1248s # Error: 1248s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmp5wj71lax 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgobject-2.0.so.0 1248s # shlib: libglib-2.0.so.0 1248s # Error: 1248s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmp870tgx2l 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgobject-2.0.so.0 1248s # Error: 1248s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmp_htyb9iz 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # typelib: GLib-2.0 1248s # Error: 1248s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpd8z04xq6 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgobject-2.0.so.0 1248s # typelib: GLib-2.0 1248s # Error: 1248s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpp10agyf4 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgio-2.0.so.0 1248s # Error: 1248s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpe77njtm8 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # typelib: GObject-2.0 1248s # typelib: GLib-2.0 1248s # typelib: GModule-2.0 1248s # Error: 1248s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1248s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1248s # tmpdir: /tmp/tmpeu7_7js7 1248s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1248s # Return code: 0 1248s # Output: 1248s # shlib: libgio-2.0.so.0 1248s # typelib: GObject-2.0 1248s # typelib: GLib-2.0 1248s # typelib: GModule-2.0 1248s # Error: 1248s 1..12 1248s ok - glib/gi-inspect-typelib.py.test 1248s # Running test: glib/autoptr-gio.test 1248s TAP version 14 1248s # random seed: R02S1820aee9def02d53b89d2f22445f2e21 1248s 1..1 1248s # Start of autoptr tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1248s ok 1 /autoptr/autoptr 1248s # End of autoptr tests 1248s ok - glib/autoptr-gio.test 1248s # Running test: glib/dir.test 1248s TAP version 14 1248s # random seed: R02Sbe5c4420f11eee149f9b73298eb60d63 1248s 1..3 1248s # Start of dir tests 1248s ok 1 /dir/read 1248s ok 2 /dir/nonexisting 1248s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1248s ok 3 /dir/refcounting 1248s # End of dir tests 1248s ok - glib/dir.test 1248s # Running test: glib/io-channel-basic.test 1248s TAP version 14 1248s # random seed: R02S21505d6aa5232d82d139edf1d134ded1 1248s 1..1 1248s # Start of gio tests 1248s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1248s # random seed: R02S416e922c80f6e14d5a998cef3f7f88c7 1248s # Executing: glib/io-channel-basic.test 1248s # GLib-DEBUG: io-channel-basic: child writing 8+1595 bytes to 6 1248s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1248s # GLib-DEBUG: io-channel-basic: ...from 5: 1595 bytes 1248s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1248s # GLib-DEBUG: io-channel-basic: child writing 8+152 bytes to 6 1248s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1248s # GLib-DEBUG: io-channel-basic: ...from 5: 152 bytes 1248s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1249s # GLib-DEBUG: io-channel-basic: child writing 8+3226 bytes to 6 1249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1249s # GLib-DEBUG: io-channel-basic: ...from 5: 3226 bytes 1249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1249s # GLib-DEBUG: io-channel-basic: child writing 8+1833 bytes to 6 1249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1249s # GLib-DEBUG: io-channel-basic: ...from 5: 1833 bytes 1249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1249s # GLib-DEBUG: io-channel-basic: child writing 8+871 bytes to 6 1249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1249s # GLib-DEBUG: io-channel-basic: ...from 5: 871 bytes 1249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1249s # GLib-DEBUG: io-channel-basic: child writing 8+1207 bytes to 6 1249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1249s # GLib-DEBUG: io-channel-basic: ...from 5: 1207 bytes 1249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1250s # GLib-DEBUG: io-channel-basic: child writing 8+2679 bytes to 6 1250s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1250s # GLib-DEBUG: io-channel-basic: ...from 5: 2679 bytes 1250s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1250s # GLib-DEBUG: io-channel-basic: child writing 8+3744 bytes to 6 1250s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1250s # GLib-DEBUG: io-channel-basic: ...from 5: 3744 bytes 1250s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1250s # GLib-DEBUG: io-channel-basic: child writing 8+1056 bytes to 6 1250s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1250s # GLib-DEBUG: io-channel-basic: ...from 5: 1056 bytes 1250s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1250s # GLib-DEBUG: io-channel-basic: child writing 8+2304 bytes to 6 1250s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1250s # GLib-DEBUG: io-channel-basic: ...from 5: 2304 bytes 1250s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1251s # GLib-DEBUG: io-channel-basic: child writing 8+1910 bytes to 6 1251s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1251s # GLib-DEBUG: io-channel-basic: ...from 5: 1910 bytes 1251s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1251s # GLib-DEBUG: io-channel-basic: child writing 8+1127 bytes to 6 1251s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1251s # GLib-DEBUG: io-channel-basic: ...from 5: 1127 bytes 1251s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1251s # GLib-DEBUG: io-channel-basic: child writing 8+482 bytes to 6 1251s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1251s # GLib-DEBUG: io-channel-basic: ...from 5: 482 bytes 1251s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1251s # GLib-DEBUG: io-channel-basic: child writing 8+3867 bytes to 6 1251s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1251s # GLib-DEBUG: io-channel-basic: ...from 5: 3867 bytes 1251s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1252s # GLib-DEBUG: io-channel-basic: child writing 8+3683 bytes to 6 1252s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1252s # GLib-DEBUG: io-channel-basic: ...from 5: 3683 bytes 1252s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1252s # GLib-DEBUG: io-channel-basic: child writing 8+882 bytes to 6 1252s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1252s # GLib-DEBUG: io-channel-basic: ...from 5: 882 bytes 1252s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1252s # GLib-DEBUG: io-channel-basic: child writing 8+1837 bytes to 6 1252s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1252s # GLib-DEBUG: io-channel-basic: ...from 5: 1837 bytes 1252s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1252s # GLib-DEBUG: io-channel-basic: child writing 8+1525 bytes to 6 1252s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1252s # GLib-DEBUG: io-channel-basic: ...from 5: 1525 bytes 1252s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1253s # GLib-DEBUG: io-channel-basic: child writing 8+2831 bytes to 6 1253s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1253s # GLib-DEBUG: io-channel-basic: ...from 5: 2831 bytes 1253s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1253s # Executing: glib/io-channel-basic.test 1253s # GLib-DEBUG: io-channel-basic: child writing 8+4222 bytes to 6 1253s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1253s # GLib-DEBUG: io-channel-basic: ...from 5: 4222 bytes 1253s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1253s # GLib-DEBUG: io-channel-basic: child writing 8+426 bytes to 6 1253s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1253s # GLib-DEBUG: io-channel-basic: ...from 5: 426 bytes 1253s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1253s # GLib-DEBUG: io-channel-basic: child writing 8+498 bytes to 6 1253s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1253s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1253s # GLib-DEBUG: io-channel-basic: ...from 5: 498 bytes 1253s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1253s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1253s # random seed: R02Sc416692d0b52a1f410a4362775192c42 1253s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1253s # random seed: R02S424e6e902cfd78390643311976298e20 1253s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1253s # random seed: R02Sd4100aa893d5cfb72328513f6a8a7a87 1253s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1253s # random seed: R02S22b0660245ec2d54cf57900d318ddfb5 1253s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1253s # random seed: R02S222f6579b2df4d17d3654be7689daf8e 1254s # GLib-DEBUG: io-channel-basic: child writing 8+291 bytes to 13 1254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 12: 291 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+4533 bytes to 9 1254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 8: 4533 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+1023 bytes to 15 1254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 14: 1023 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+1836 bytes to 11 1254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 10: 1836 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+3817 bytes to 17 1254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 16: 3817 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+13 bytes to 13 1254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 12: 13 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+2993 bytes to 11 1254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 10: 2993 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+3392 bytes to 15 1254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 14: 3392 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+1795 bytes to 9 1254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 8: 1795 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+3285 bytes to 17 1254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 16: 3285 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+877 bytes to 13 1254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 12: 877 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+2153 bytes to 11 1254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 10: 2153 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+4265 bytes to 15 1254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 14: 4265 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+332 bytes to 17 1254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 16: 332 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1254s # GLib-DEBUG: io-channel-basic: child writing 8+4985 bytes to 9 1254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1254s # GLib-DEBUG: io-channel-basic: ...from 8: 4985 bytes 1254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+912 bytes to 11 1255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 10: 912 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2929 bytes to 13 1255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 12: 2929 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+1645 bytes to 17 1255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 16: 1645 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2746 bytes to 15 1255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 14: 2746 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+3447 bytes to 9 1255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 8: 3447 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2707 bytes to 13 1255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 12: 2707 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+931 bytes to 15 1255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 14: 931 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+327 bytes to 17 1255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 16: 327 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2087 bytes to 11 1255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 10: 2087 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+1181 bytes to 9 1255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 8: 1181 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+3368 bytes to 13 1255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 12: 3368 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2391 bytes to 15 1255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 14: 2391 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+1352 bytes to 11 1255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 10: 1352 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2611 bytes to 9 1255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 8: 2611 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+1244 bytes to 17 1255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 16: 1244 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2766 bytes to 15 1255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 14: 2766 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+3568 bytes to 13 1255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 12: 3568 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+4960 bytes to 11 1255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 10: 4960 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+4086 bytes to 17 1255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 16: 4086 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1255s # GLib-DEBUG: io-channel-basic: child writing 8+2867 bytes to 9 1255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1255s # GLib-DEBUG: io-channel-basic: ...from 8: 2867 bytes 1255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2451 bytes to 13 1256s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 12: 2451 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2527 bytes to 11 1256s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 10: 2527 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+410 bytes to 15 1256s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 14: 410 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2579 bytes to 17 1256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 16: 2579 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+4502 bytes to 9 1256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 8: 4502 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2873 bytes to 11 1256s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 10: 2873 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+4978 bytes to 13 1256s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 12: 4978 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+1760 bytes to 15 1256s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 14: 1760 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+4367 bytes to 17 1256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 16: 4367 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2649 bytes to 9 1256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 8: 2649 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2088 bytes to 13 1256s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 12: 2088 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2163 bytes to 11 1256s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 10: 2163 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+4942 bytes to 15 1256s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 14: 4942 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+206 bytes to 17 1256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 16: 206 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+1325 bytes to 9 1256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 8: 1325 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+113 bytes to 13 1256s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 12: 113 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+1102 bytes to 11 1256s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 10: 1102 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+2618 bytes to 15 1256s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 14: 2618 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+574 bytes to 9 1256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 8: 574 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1256s # GLib-DEBUG: io-channel-basic: child writing 8+587 bytes to 17 1256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1256s # GLib-DEBUG: io-channel-basic: ...from 16: 587 bytes 1256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2525 bytes to 11 1257s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 10: 2525 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+1878 bytes to 13 1257s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 12: 1878 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+4803 bytes to 15 1257s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 14: 4803 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+3699 bytes to 17 1257s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 16: 3699 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+4982 bytes to 9 1257s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 8: 4982 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2680 bytes to 11 1257s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 10: 2680 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2726 bytes to 13 1257s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 12: 2726 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2758 bytes to 15 1257s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 14: 2758 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+3381 bytes to 17 1257s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 16: 3381 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+4753 bytes to 9 1257s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 8: 4753 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2633 bytes to 11 1257s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 10: 2633 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+961 bytes to 13 1257s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 12: 961 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2308 bytes to 15 1257s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 14: 2308 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+3588 bytes to 9 1257s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 8: 3588 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+2314 bytes to 17 1257s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 16: 2314 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+762 bytes to 11 1257s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 10: 762 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+173 bytes to 13 1257s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 12: 173 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+1630 bytes to 15 1257s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 14: 1630 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+4267 bytes to 17 1257s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 16: 4267 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1257s # GLib-DEBUG: io-channel-basic: child writing 8+4702 bytes to 9 1257s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1257s # GLib-DEBUG: io-channel-basic: ...from 8: 4702 bytes 1257s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3028 bytes to 11 1258s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 10: 3028 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+2798 bytes to 13 1258s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 12: 2798 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+1201 bytes to 15 1258s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 14: 1201 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+97 bytes to 9 1258s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 8: 97 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3069 bytes to 17 1258s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 16: 3069 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1258s # Executing: glib/io-channel-basic.test 1258s # GLib-DEBUG: io-channel-basic: child writing 8+1385 bytes to 11 1258s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 10: 1385 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+1978 bytes to 13 1258s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 12: 1978 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3657 bytes to 9 1258s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 8: 3657 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+2184 bytes to 15 1258s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 14: 2184 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3549 bytes to 17 1258s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 16: 3549 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+588 bytes to 11 1258s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 10: 588 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+2070 bytes to 13 1258s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 12: 2070 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+400 bytes to 9 1258s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 8: 400 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+1181 bytes to 15 1258s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 14: 1181 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+4427 bytes to 17 1258s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 16: 4427 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3045 bytes to 13 1258s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 12: 3045 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+4312 bytes to 11 1258s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 10: 4312 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+409 bytes to 9 1258s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 8: 409 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+2000 bytes to 15 1258s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 14: 2000 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1258s # GLib-DEBUG: io-channel-basic: child writing 8+3894 bytes to 17 1258s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1258s # GLib-DEBUG: io-channel-basic: ...from 16: 3894 bytes 1258s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+50 bytes to 13 1259s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 12: 50 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+2541 bytes to 11 1259s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 10: 2541 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+3897 bytes to 15 1259s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 14: 3897 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1976 bytes to 9 1259s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 8: 1976 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+425 bytes to 17 1259s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1259s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1259s # GLib-DEBUG: io-channel-basic: ...from 16: 425 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+4730 bytes to 13 1259s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 12: 4730 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1867 bytes to 11 1259s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 10: 1867 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+531 bytes to 9 1259s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1259s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1259s # GLib-DEBUG: io-channel-basic: ...from 8: 531 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1925 bytes to 15 1259s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 14: 1925 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1829 bytes to 11 1259s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 10: 1829 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+221 bytes to 13 1259s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 12: 221 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1271 bytes to 15 1259s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 14: 1271 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+926 bytes to 13 1259s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1259s # GLib-DEBUG: io-channel-basic: child writing 8+1391 bytes to 11 1259s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1259s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1259s # GLib-DEBUG: io-channel-basic: ...from 10: 1391 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1259s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1259s # GLib-DEBUG: io-channel-basic: ...from 12: 926 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1259s # GLib-DEBUG: io-channel-basic: child writing 8+3231 bytes to 15 1259s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1259s # GLib-DEBUG: io-channel-basic: ...from 14: 3231 bytes 1259s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1260s # GLib-DEBUG: io-channel-basic: child writing 8+505 bytes to 15 1260s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1260s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1260s # GLib-DEBUG: io-channel-basic: ...from 14: 505 bytes 1260s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1260s ok 1 /gio/io-basics 1260s # slow test /gio/io-basics executed in 11.99 secs 1260s # End of gio tests 1260s ok - glib/io-channel-basic.test 1260s # Running test: glib/properties-introspection.test 1260s TAP version 14 1260s # random seed: R02S22af91ca0eb472700d17307645c200cc 1260s 1..2 1260s # Start of properties tests 1260s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1260s ok 1 /properties/introspection 1260s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1260s ok 2 /properties/collision 1260s # End of properties tests 1260s ok - glib/properties-introspection.test 1260s # Running test: glib/bitlock.test 1260s TAP version 14 1260s # random seed: R02S553bf02b88f54a48a378faf8ffa5a38c 1260s 1..2 1260s # Start of bitlock tests 1260s # Start of performance tests 1260s # max perf: iterations per second 1260s ok 1 /bitlock/performance/uncontended 1260s ok - glib/bitlock.test 1260s ok 2 /bitlock/performance/parallel 1260s # End of performance tests 1260s # End of bitlock tests 1260s # Running test: glib/simple-async-result.test 1260s TAP version 14 1260s # random seed: R02Sc5b2fbe5480c304e21a3e786239a121c 1260s 1..2 1260s # Start of gio tests 1260s # Start of simple-async-result tests 1260s ok 1 /gio/simple-async-result/test 1260s # GLib-GIO-DEBUG: GTask 0xc6187a9a8b10 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1260s ok 2 /gio/simple-async-result/valid 1260s # End of simple-async-result tests 1260s # End of gio tests 1260s ok - glib/simple-async-result.test 1260s # Running test: glib/atomic-c-99.test 1260s TAP version 14 1260s # random seed: R02Sb40f178f1f476f00a6bd39510eb6330b 1260s 1..2 1260s # Start of atomic tests 1260s ok 1 /atomic/types 1260s ok 2 /atomic/threaded 1260s ok - glib/atomic-c-99.test 1260s # End of atomic tests 1260s # Running test: glib/async-splice-output-stream.test 1260s TAP version 14 1260s # random seed: R02Sbfa216098b86ffbe6dd9c3dc8755360e 1260s 1..5 1260s # Start of async-splice tests 1260s ok 1 /async-splice/copy-chunks 1260s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1260s ok 2 /async-splice/copy-chunks-threaded-input 1260s ok 3 /async-splice/copy-chunks-threaded-output 1260s ok 4 /async-splice/copy-chunks-threaded 1260s ok 5 /async-splice/cancelled 1260s # End of async-splice tests 1260s ok - glib/async-splice-output-stream.test 1260s # Running test: glib/gdbus-proxy.test 1260s TAP version 14 1260s # random seed: R02Scbfcc8685cd3f3f75f4e40eb920bfbc9 1260s 1..5 1260s # Start of gdbus tests 1260s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/home 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/cache 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/system-config2 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/config 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/system-data2 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/data 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/state 1260s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/.dirs/runtime 1262s ok 1 /gdbus/proxy 1262s # slow test /gdbus/proxy executed in 1.72 secs 1262s # Start of proxy tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-properties/.dirs/runtime 1262s ok 2 /gdbus/proxy/no-properties 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/wellknown-noauto/.dirs/runtime 1262s ok 3 /gdbus/proxy/wellknown-noauto 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/async/.dirs/runtime 1263s # Executing: glib/gdbus-proxy.test 1263s ok 4 /gdbus/proxy/async 1263s # slow test /gdbus/proxy/async executed in 1.72 secs 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_SBXQE3/gdbus/proxy/no-match-rule/.dirs/runtime 1263s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1263s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1265s ok 5 /gdbus/proxy/no-match-rule 1265s # slow test /gdbus/proxy/no-match-rule executed in 1.72 secs 1265s # End of proxy tests 1265s # End of gdbus tests 1265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1265s ok - glib/gdbus-proxy.test 1265s # Running test: glib/logging.test 1265s TAP version 14 1265s # random seed: R02S6fd8de8d028b8c2f77d2240fe5a88db0 1265s 1..20 1265s # Start of logging tests 1266s ok 1 /logging/default-handler 1266s # slow test /logging/default-handler executed in 0.67 secs 1266s ok 2 /logging/journald-handler 1266s ok 3 /logging/warnings 1266s ok 4 /logging/fatal-log-mask 1266s ok 5 /logging/always-fatal 1266s # bu-DEBUG: message 1266s # ba-DEBUG: message 1266s # ba-INFO: message 1266s ok 6 /logging/set-handler 1266s ok 7 /logging/print-handler 1266s ok 8 /logging/printerr-handler 1266s ok - glib/logging.test 1266s # SUMMARY: total=330; passed=329; skipped=1; failed=0; user=224.5s; system=72.5s; maxrss=147496 1266s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1266s # The Log Message Handler 1266s # 1266s # The Good Fail Message Handler 1266s # 1266s ok 9 /logging/653052 1266s ok 10 /logging/gibberish 1266s # Start of default-handler tests 1266s # Start of subprocess tests 1266s # End of subprocess tests 1266s # End of default-handler tests 1266s # End of logging tests 1266s # Start of structured-logging tests 1266s ok 11 /structured-logging/no-state 1266s ok 12 /structured-logging/some-state 1266s # /structured-logging/recursion-overflow summary: Test that g_log_structured always sets n_fields correctly. 1266s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3760 1266s ok 13 /structured-logging/recursion-overflow 1266s ok 14 /structured-logging/robustness 1266s ok 15 /structured-logging/roundtrip1 1266s ok 16 /structured-logging/roundtrip2 1266s ok 17 /structured-logging/roundtrip3 1266s ok 18 /structured-logging/variant1 1266s ok 19 /structured-logging/variant2 1266s ok 20 /structured-logging/set-writer-func-twice 1266s # End of structured-logging tests 1266s autopkgtest [17:46:09]: test installed-tests: -----------------------] 1267s installed-tests PASS 1267s autopkgtest [17:46:10]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1267s autopkgtest [17:46:10]: test closure-refcount: preparing testbed 1268s Reading package lists... 1268s Building dependency tree... 1268s Reading state information... 1268s Solving dependencies... 1269s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1269s autopkgtest [17:46:12]: test closure-refcount: [----------------------- 1270s Running test: glib/closure-refcount.test 1270s TAP version 14 1270s # random seed: R02Scc4d13bd1dbf08b54483002377063e7d 1270s 1..1 1270s # Start of closure tests 1270s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1270s # End of closure tests 1270s PASS: glib/closure-refcount.test 1270s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3152 1270s autopkgtest [17:46:13]: test closure-refcount: -----------------------] 1270s closure-refcount PASS 1270s autopkgtest [17:46:13]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1271s autopkgtest [17:46:14]: test debugcontroller: preparing testbed 1271s Reading package lists... 1271s Building dependency tree... 1271s Reading state information... 1271s Solving dependencies... 1272s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1273s autopkgtest [17:46:16]: test debugcontroller: [----------------------- 1273s Running test: glib/debugcontroller.test 1273s TAP version 14 1273s # random seed: R02Sa363fab73b06efd30fdb32a7a692eae2 1273s 1..3 1273s # Start of debug-controller tests 1273s # Start of dbus tests 1273s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1273s # GLib-GIO-DEBUG: Debug output enabled 1273s # GLib-GIO-DEBUG: Debug output disabled 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 1 /debug-controller/dbus/basic 1273s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 2 /debug-controller/dbus/duplicate 1273s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # GLib-GIO-DEBUG: Debug output enabled 1273s # GLib-GIO-DEBUG: Debug output disabled 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 3 /debug-controller/dbus/properties 1273s # End of dbus tests 1273s # End of debug-controller tests 1273s PASS: glib/debugcontroller.test 1273s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5828 1273s autopkgtest [17:46:16]: test debugcontroller: -----------------------] 1274s autopkgtest [17:46:17]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1274s debugcontroller PASS 1274s autopkgtest [17:46:17]: test gdbus-server-auth: preparing testbed 1274s Reading package lists... 1274s Building dependency tree... 1274s Reading state information... 1275s Solving dependencies... 1275s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1276s autopkgtest [17:46:19]: test gdbus-server-auth: [----------------------- 1276s Running test: glib/gdbus-server-auth.test 1276s TAP version 14 1276s # random seed: R02Scb5248647db0bc0a686c08cc6b664fa2 1276s 1..9 1276s # Start of gdbus tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/.dirs/runtime 1276s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-DIMXE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1276s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-DIMXE3/dbus-79nUg9m7 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1276s ok 1 /gdbus/server-auth 1276s # Start of server-auth tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/abstract/.dirs/runtime 1276s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-538WE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1276s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-538WE3/dbus-MsyGGdMK 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1276s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1276s ok 2 /gdbus/server-auth/abstract 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/tcp/.dirs/runtime 1276s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1276s # Connectable address: tcp:host=127.0.0.1,port=35627 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1276s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1276s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1276s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1276s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1277s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1277s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1277s ok 3 /gdbus/server-auth/tcp 1277s # slow test /gdbus/server-auth/tcp executed in 0.87 secs 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/.dirs/runtime 1277s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-9V8NE3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1277s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-9V8NE3/dbus-wEA1Ha1o 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1277s ok 4 /gdbus/server-auth/anonymous 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/.dirs/runtime 1277s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-ZNUNE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1277s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-ZNUNE3/dbus-Tmrd9uXj 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1277s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1277s ok 5 /gdbus/server-auth/external 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/.dirs/runtime 1277s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-2YLNE3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1277s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-2YLNE3/dbus-Q9e22KLv 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1277s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1277s ok 6 /gdbus/server-auth/sha1 1277s # Start of anonymous tests 1277s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/home 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/config 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/data 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/state 1277s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1277s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1277s # Connectable address: tcp:host=127.0.0.1,port=35129 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1277s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1277s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1277s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1277s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1277s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1278s ok 7 /gdbus/server-auth/anonymous/tcp 1278s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 1278s # End of anonymous tests 1278s # Start of external tests 1278s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/home 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/cache 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/config 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/data 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/state 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1278s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-8DLQE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1278s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_9AMXE3/gdbus-server-auth-8DLQE3/dbus-jY3Sj7MM 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39993 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1278s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39993,uid=1000,gid=1000 1278s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39993 1278s ok 8 /gdbus/server-auth/external/require-same-user 1278s # End of external tests 1278s # Start of sha1 tests 1278s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/home 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/cache 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/config 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/data 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/state 1278s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_9AMXE3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1278s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1278s # Connectable address: tcp:host=127.0.0.1,port=38809 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1278s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1278s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1278s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1278s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1278s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1279s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1279s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1279s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1279s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1279s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1279s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1279s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1279s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1279s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1279s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1279s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1279s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1279s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1279s ok 9 /gdbus/server-auth/sha1/tcp 1279s # slow test /gdbus/server-auth/sha1/tcp executed in 0.85 secs 1279s # End of sha1 tests 1279s # End of server-auth tests 1279s # End of gdbus tests 1279s PASS: glib/gdbus-server-auth.test 1279s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=7968 1279s autopkgtest [17:46:22]: test gdbus-server-auth: -----------------------] 1280s gdbus-server-auth PASS 1280s autopkgtest [17:46:23]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1280s autopkgtest [17:46:23]: test gdbus-threading: preparing testbed 1280s Reading package lists... 1280s Building dependency tree... 1280s Reading state information... 1281s Solving dependencies... 1281s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1282s autopkgtest [17:46:25]: test gdbus-threading: [----------------------- 1282s Running test: glib/gdbus-threading.test 1282s TAP version 14 1282s # random seed: R02S8e25c9b114b010c593352a01b179c4cb 1282s 1..3 1282s # Start of gdbus tests 1282s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/home 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/cache 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/system-config2 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/config 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/system-data2 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/data 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/state 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_FQ6OE3/gdbus/delivery-in-thread/.dirs/runtime 1282s ok 1 /gdbus/delivery-in-thread 1282s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/home 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/cache 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/system-config2 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/config 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/system-data2 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/data 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/state 1282s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_FQ6OE3/gdbus/method-calls-in-thread/.dirs/runtime 1283s ok 2 /gdbus/method-calls-in-thread 1283s # slow test /gdbus/method-calls-in-thread executed in 0.83 secs 1283s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/home 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/cache 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/system-config2 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/config 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/system-data2 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/data 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/state 1283s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_FQ6OE3/gdbus/threaded-singleton/.dirs/runtime 1283s # GLib-GIO-DEBUG: refcount of 0xea04c40073f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c40073f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c40073f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c4005790 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c4005770 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c4006ac0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1283s # GLib-GIO-DEBUG: refcount of 0xea04c4005600 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4003b20 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4004f70 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c40077e0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4007690 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4007690 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4007690 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4007690 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s # GLib-GIO-DEBUG: refcount of 0xea04c4006ee0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1284s ok 3 /gdbus/threaded-singleton 1284s # slow test /gdbus/threaded-singleton executed in 1.62 secs 1284s # End of gdbus tests 1284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1284s PASS: glib/gdbus-threading.test 1284s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.4s; maxrss=5716 1285s autopkgtest [17:46:28]: test gdbus-threading: -----------------------] 1285s gdbus-threading PASS 1285s autopkgtest [17:46:28]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1286s autopkgtest [17:46:29]: test gmenumodel: preparing testbed 1286s Reading package lists... 1286s Building dependency tree... 1286s Reading state information... 1286s Solving dependencies... 1287s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1287s autopkgtest [17:46:30]: test gmenumodel: [----------------------- 1288s Running test: glib/gmenumodel.test 1288s TAP version 14 1288s # random seed: R02S1ad8f898b063a2e3d15c82b26f28f79a 1288s 1..15 1288s # Start of gmenu tests 1288s ok 1 /gmenu/equality 1288s # slow test /gmenu/equality executed in 0.55 secs 1289s ok 2 /gmenu/random 1289s # slow test /gmenu/random executed in 0.70 secs 1289s ok 3 /gmenu/attributes 1289s ok 4 /gmenu/links 1289s ok 5 /gmenu/mutable 1289s ok 6 /gmenu/convenience 1289s ok 7 /gmenu/menuitem 1289s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1289s ok 8 /gmenu/input-validation 1289s # Start of dbus tests 1290s ok 9 /gmenu/dbus/roundtrip 1290s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1290s ok 10 /gmenu/dbus/subscriptions 1291s ok 11 /gmenu/dbus/threaded 1291s # slow test /gmenu/dbus/threaded executed in 0.79 secs 1291s # Start of peer tests 1292s ok 12 /gmenu/dbus/peer/roundtrip 1292s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1293s ok 13 /gmenu/dbus/peer/subscriptions 1293s # End of peer tests 1293s # Start of export tests 1293s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1293s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1293s ok 14 /gmenu/dbus/export/error-handling 1293s # End of export tests 1293s # End of dbus tests 1293s # Start of attributes tests 1293s ok 15 /gmenu/attributes/iterate 1293s # End of attributes tests 1293s # End of gmenu tests 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s PASS: glib/gmenumodel.test 1293s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.6s; system=0.2s; maxrss=19508 1293s autopkgtest [17:46:36]: test gmenumodel: -----------------------] 1293s autopkgtest [17:46:36]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1293s gmenumodel PASS 1294s autopkgtest [17:46:37]: test mainloop: preparing testbed 1294s Reading package lists... 1294s Building dependency tree... 1294s Reading state information... 1294s Solving dependencies... 1295s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1296s autopkgtest [17:46:39]: test mainloop: [----------------------- 1296s Running test: glib/mainloop.test 1296s TAP version 14 1296s # random seed: R02Sa7a3f6cde68d1ff0ed7b9a64fbc961c6 1296s 1..47 1296s # Start of maincontext tests 1296s ok 1 /maincontext/basic 1296s # Add same-priority sources: 18 1296s # Find each source: 4 1296s # Remove in random order: 41 1296s ok 2 /maincontext/nsources_same_priority 1296s # Add different-priority sources: 22 1296s # Find each source: 4 1296s # Remove in random order: 47 1296s ok 3 /maincontext/nsources_different_priority 1296s # Add sources from threads: 258 1296s # Remove sources from threads: 50 1296s ok 4 /maincontext/nsources_threadpool 1296s ok 5 /maincontext/source_finalization 1296s # /maincontext/idle-once summary: Test g_idle_add_once() works 1296s ok 6 /maincontext/idle-once 1296s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1296s ok 7 /maincontext/timeout-once 1296s # /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. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1296s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1296s # Start of source_finalization_from_source tests 1296s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 9 /maincontext/source_finalization_from_source/0 1296s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 10 /maincontext/source_finalization_from_source/1 1296s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 11 /maincontext/source_finalization_from_source/2 1296s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 12 /maincontext/source_finalization_from_source/3 1296s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 13 /maincontext/source_finalization_from_source/4 1296s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 14 /maincontext/source_finalization_from_source/5 1296s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 15 /maincontext/source_finalization_from_source/6 1296s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 16 /maincontext/source_finalization_from_source/7 1296s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 17 /maincontext/source_finalization_from_source/8 1296s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1296s ok 18 /maincontext/source_finalization_from_source/9 1296s # End of source_finalization_from_source tests 1296s # Start of source_finalization_from_dispatch tests 1296s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1296s ok 19 /maincontext/source_finalization_from_dispatch/0 1296s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1296s ok 20 /maincontext/source_finalization_from_dispatch/1 1296s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1296s ok 21 /maincontext/source_finalization_from_dispatch/2 1296s # End of source_finalization_from_dispatch tests 1296s # End of maincontext tests 1296s # Start of mainloop tests 1296s ok 22 /mainloop/basic 1296s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1296s ok 24 /mainloop/priorities 1297s ok 25 /mainloop/invoke 1297s # slow test /mainloop/invoke executed in 0.50 secs 1298s ok 26 /mainloop/child_sources 1298s # slow test /mainloop/child_sources executed in 1.19 secs 1300s ok 27 /mainloop/recursive_child_sources 1300s # slow test /mainloop/recursive_child_sources executed in 2.17 secs 1300s ok 28 /mainloop/recursive_loop_child_sources 1300s ok 29 /mainloop/swapping_child_sources 1300s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1300s ok 30 /mainloop/blocked_child_sources 1301s Executing: glib/mainloop.test 1301s ok 31 /mainloop/source_time 1301s # slow test /mainloop/source_time executed in 1.00 secs 1301s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1301s ok 32 /mainloop/overflow 1302s ok 33 /mainloop/ready-time 1302s # slow test /mainloop/ready-time executed in 0.50 secs 1302s ok 34 /mainloop/wakeup 1302s ok 35 /mainloop/remove-invalid 1302s ok 36 /mainloop/unref-while-pending 1302s ok 37 /mainloop/unix-fd 1302s # slow test /mainloop/unix-fd executed in 0.60 secs 1302s ok 38 /mainloop/unix-fd-source 1302s ok 39 /mainloop/source-unix-fd-api 1303s ok 40 /mainloop/wait 1303s ok 41 /mainloop/unix-file-poll 1303s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1303s ok 42 /mainloop/unix-fd-priority 1303s ok 43 /mainloop/nfds 1303s ok 44 /mainloop/steal-fd 1304s ok 45 /mainloop/simultaneous-source-context-destruction 1304s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.43 secs 1304s # Start of ownerless-polling tests 1304s ok 46 /mainloop/ownerless-polling/attach-first 1304s ok 47 /mainloop/ownerless-polling/pop-first 1304s # End of ownerless-polling tests 1304s # End of mainloop tests 1304s PASS: glib/mainloop.test 1304s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=2.7s; maxrss=16844 1304s autopkgtest [17:46:47]: test mainloop: -----------------------] 1305s mainloop PASS 1305s autopkgtest [17:46:48]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1305s autopkgtest [17:46:48]: test memory-monitor-dbus: preparing testbed 1305s Reading package lists... 1306s Building dependency tree... 1306s Reading state information... 1306s Solving dependencies... 1306s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1307s autopkgtest [17:46:50]: test memory-monitor-dbus: [----------------------- 1307s Running test: glib/memory-monitor-dbus.test 1308s TAP version 13 1308s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1308s # Received memory warning signal, level 1308s # Received memory warning signal, level 1308s # Received memory warning signal, level 1308s 1..1 1308s PASS: glib/memory-monitor-dbus.test 1308s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=30008 1308s autopkgtest [17:46:51]: test memory-monitor-dbus: -----------------------] 1308s autopkgtest [17:46:51]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1308s memory-monitor-dbus PASS 1309s autopkgtest [17:46:52]: test socket: preparing testbed 1309s Reading package lists... 1309s Building dependency tree... 1309s Reading state information... 1309s Solving dependencies... 1310s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1311s autopkgtest [17:46:54]: test socket: [----------------------- 1311s Running test: glib/socket.test 1311s TAP version 14 1311s # random seed: R02S4dbc09091761d66dfcef23c76afc6b85 1311s 1..30 1311s # Start of socket tests 1312s ok 1 /socket/ipv4_sync 1312s # slow test /socket/ipv4_sync executed in 1.00 secs 1313s ok 2 /socket/ipv4_async 1313s # slow test /socket/ipv4_async executed in 1.00 secs 1313s ok 3 /socket/ipv6_sync 1313s ok 4 /socket/ipv6_async 1313s ok 5 /socket/ipv6_v4mapped 1314s ok 6 /socket/close_graceful 1314s # slow test /socket/close_graceful executed in 1.00 secs 1314s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1314s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1314s ok 8 /socket/fd_reuse 1314s ok 9 /socket/address 1314s ok 10 /socket/unix-from-fd 1314s ok 11 /socket/unix-connection 1314s ok 12 /socket/unix-connection-ancillary-data 1314s ok 13 /socket/source-postmortem 1314s ok 14 /socket/read_write 1314s ok 15 /socket/read_writev 1314s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1314s ok 16 /socket/receive_bytes 1314s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1314s ok 17 /socket/receive_bytes_from 1314s # Start of ipv4_sync tests 1314s ok 18 /socket/ipv4_sync/datagram 1314s # Start of datagram tests 1315s ok 19 /socket/ipv4_sync/datagram/timeouts 1315s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1315s # End of datagram tests 1315s # End of ipv4_sync tests 1315s # Start of ipv6_sync tests 1315s ok 20 /socket/ipv6_sync/datagram 1315s # Start of datagram tests 1316s ok 21 /socket/ipv6_sync/datagram/timeouts 1316s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1316s # End of datagram tests 1316s # End of ipv6_sync tests 1316s # Start of reuse tests 1316s ok 22 /socket/reuse/tcp 1316s ok 23 /socket/reuse/udp 1316s # End of reuse tests 1316s # Start of get_available tests 1316s Executing: glib/socket.test 1316s ok 24 /socket/get_available/datagram 1316s ok 25 /socket/get_available/stream 1316s # End of get_available tests 1316s # Start of credentials tests 1316s # Supported on this OS: GCredentials:linux-ucred:pid=0 1316s ok 26 /socket/credentials/tcp_client 1316s # Supported on this OS: GCredentials:linux-ucred:pid=0 1316s ok 27 /socket/credentials/tcp_server 1316s # Supported on this OS: GCredentials:linux-ucred:pid=65988,uid=1000,gid=1000 1316s ok 28 /socket/credentials/unix_socketpair 1316s # End of credentials tests 1316s # Start of accept tests 1316s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1316s ok 29 /socket/accept/cancelled 1316s # End of accept tests 1316s # Start of connect tests 1316s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1316s ok 30 /socket/connect/cancelled 1316s # End of connect tests 1316s # End of socket tests 1316s PASS: glib/socket.test 1316s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5208 1316s autopkgtest [17:46:59]: test socket: -----------------------] 1317s socket PASS 1317s autopkgtest [17:47:00]: test socket: - - - - - - - - - - results - - - - - - - - - - 1317s autopkgtest [17:47:00]: test testfilemonitor: preparing testbed 1318s Reading package lists... 1318s Building dependency tree... 1318s Reading state information... 1318s Solving dependencies... 1318s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1319s autopkgtest [17:47:02]: test testfilemonitor: [----------------------- 1319s Running test: glib/testfilemonitor.test 1319s TAP version 14 1319s # random seed: R02S7bfc73a0d812f1adb2544777c0908947 1319s 1..8 1319s # Start of monitor tests 1319s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1319s # Using temporary directory: /tmp/gio-test-testfilemonitor_66USE3 1319s # Using GFileMonitor GInotifyFileMonitor 1321s ok 1 /monitor/atomic-replace 1321s # slow test /monitor/atomic-replace executed in 2.00 secs 1321s # Using temporary directory: /tmp/gio-test-testfilemonitor_CPXSE3 1321s # Using GFileMonitor GInotifyFileMonitor 1324s ok 2 /monitor/file-changes 1324s # slow test /monitor/file-changes executed in 2.50 secs 1324s # Using temporary directory: /tmp/gio-test-testfilemonitor_ZOEHE3 1324s # Using GFileMonitor GInotifyFileMonitor 1324s Executing: glib/testfilemonitor.test 1327s ok 3 /monitor/dir-monitor 1327s # slow test /monitor/dir-monitor executed in 3.50 secs 1327s # Using temporary directory: /tmp/gio-test-testfilemonitor_1Y2SE3 1327s # Using GFileMonitor GInotifyFileMonitor 1329s Executing: glib/testfilemonitor.test 1334s Executing: glib/testfilemonitor.test 1339s Executing: glib/testfilemonitor.test 1344s Executing: glib/testfilemonitor.test 1349s Executing: glib/testfilemonitor.test 1352s ok 4 /monitor/dir-not-existent 1352s # slow test /monitor/dir-not-existent executed in 25.02 secs 1352s # Using temporary directory: /tmp/gio-test-testfilemonitor_SDF3E3 1352s # Using GFileMonitor 0 GInotifyFileMonitor 1352s # Using GFileMonitor 1 GInotifyFileMonitor 1354s Executing: glib/testfilemonitor.test 1354s ok 5 /monitor/cross-dir-moves 1354s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1354s # Using temporary directory: /tmp/gio-test-testfilemonitor_9JB3E3 1354s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 1354s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1354s ok 6 /monitor/finalize-in-callback 1354s # Using temporary directory: /tmp/gio-test-testfilemonitor_ZMK3E3 1354s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1354s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1354s ok 7 /monitor/root 1354s # Start of file tests 1354s # Using temporary directory: /tmp/gio-test-testfilemonitor_XIK3E3 1354s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1354s # Running with hard link tests 1354s # Using GFileMonitor GInotifyFileMonitor 1358s # Event 0 at expected index 7 skipped because it is marked as optional 1358s # Event 2 at expected index 11 skipped because it is marked as optional 1358s ok 8 /monitor/file/hard-links 1358s # slow test /monitor/file/hard-links executed in 3.50 secs 1358s # End of file tests 1358s # End of monitor tests 1358s PASS: glib/testfilemonitor.test 1358s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5464 1358s autopkgtest [17:47:41]: test testfilemonitor: -----------------------] 1359s testfilemonitor PASS 1359s autopkgtest [17:47:42]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1359s autopkgtest [17:47:42]: test thread-pool-slow: preparing testbed 1359s Reading package lists... 1360s Building dependency tree... 1360s Reading state information... 1360s Solving dependencies... 1360s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1361s autopkgtest [17:47:44]: test thread-pool-slow: [----------------------- 1361s Running test: glib/thread-pool-slow.test 1361s TAP version 14 1361s # random seed: R02S8b0404c9c9cf3777d1bd9dfddddaf0b3 1361s 1..7 1361s # Start of threadpool tests 1361s ok 1 /threadpool/functions 1362s ok 2 /threadpool/stop-unused 1362s # slow test /threadpool/stop-unused executed in 0.51 secs 1362s ok 3 /threadpool/pools 1362s # [unsorted] ===> pushed new thread with id:98, number of threads:1, unprocessed:1 1362s # [unsorted] ===> pushed new thread with id:53, number of threads:2, unprocessed:1 1362s # [unsorted] ===> pushed new thread with id:70, number of threads:3, unprocessed:2 1362s # [unsorted] ===> pushed new thread with id:70, number of threads:4, unprocessed:3 1362s # [unsorted] ===> pushed new thread with id:35, number of threads:5, unprocessed:2 1362s # [unsorted] ===> pushed new thread with id:46, number of threads:6, unprocessed:1 1362s # [unsorted] ===> pushed new thread with id:56, number of threads:7, unprocessed:2 1362s # [unsorted] ===> pushed new thread with id:66, number of threads:8, unprocessed:3 1362s # [unsorted] ===> pushed new thread with id:50, number of threads:9, unprocessed:4 1362s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:5 1362s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:6 1362s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:7 1362s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:8 1362s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:9 1362s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:10 1362s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:11 1362s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:12 1362s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:13 1362s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:14 1362s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:15 1362s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:16 1362s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:17 1362s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:18 1362s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:19 1362s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:20 1362s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:21 1362s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:22 1362s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:23 1362s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:24 1362s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:25 1362s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:26 1362s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:27 1362s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:28 1362s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:29 1362s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:30 1362s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:31 1362s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:32 1362s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:33 1362s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:34 1362s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:35 1362s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:36 1362s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:37 1362s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:38 1362s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:39 1362s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:40 1362s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:41 1362s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:42 1362s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:43 1362s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:44 1362s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:45 1362s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:46 1362s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:47 1362s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:48 1362s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:49 1362s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:50 1362s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:51 1362s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:52 1362s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:53 1362s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:54 1362s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:55 1362s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:56 1362s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:56 1362s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:57 1362s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:58 1362s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:58 1362s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:59 1362s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:59 1362s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:60 1362s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:60 1362s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:60 1362s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:61 1362s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:62 1362s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:63 1362s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:64 1362s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:65 1362s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:66 1362s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:67 1362s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:68 1362s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:69 1362s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:70 1362s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:71 1362s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:72 1362s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:73 1362s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:74 1362s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:75 1362s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:76 1362s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:77 1362s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:78 1362s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:79 1362s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:80 1362s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:81 1362s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:82 1362s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:83 1362s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:84 1362s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:85 1362s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:86 1362s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:87 1362s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:88 1362s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:89 1362s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:90 1362s ok 4 /threadpool/no-sort 1362s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:1 1362s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:2 1362s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:3 1362s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:4 1362s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:5 1362s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:6 1362s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:7 1362s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:8 1362s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:9 1362s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:10 1362s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:11 1362s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:12 1362s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:13 1362s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:14 1362s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:15 1362s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:16 1362s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:17 1362s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:18 1362s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:19 1362s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:20 1362s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:21 1362s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:22 1362s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:23 1362s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:24 1362s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:25 1362s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:26 1362s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:27 1362s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:28 1362s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:29 1362s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:30 1362s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:31 1362s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:32 1362s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:33 1362s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:34 1362s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:35 1362s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:36 1362s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:37 1362s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:38 1362s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:39 1362s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:40 1362s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:41 1362s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:42 1362s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:43 1362s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:44 1362s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:45 1362s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:46 1362s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:47 1362s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:48 1362s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:49 1362s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:50 1362s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:51 1362s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:52 1362s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:53 1362s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:54 1362s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:55 1362s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:56 1362s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:57 1362s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:58 1362s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:59 1362s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:60 1362s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:61 1362s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:62 1362s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:63 1362s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:64 1362s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:65 1362s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:66 1362s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:67 1362s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:68 1362s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:69 1362s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:70 1362s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:71 1362s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:72 1362s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:73 1362s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:74 1362s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:75 1362s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:76 1362s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:77 1362s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:78 1362s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:79 1362s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:80 1362s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:81 1362s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:82 1362s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:83 1362s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:84 1362s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:85 1362s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:86 1362s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:87 1362s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:88 1362s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:89 1362s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:90 1362s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:91 1362s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:92 1362s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:93 1362s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:94 1362s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:95 1362s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:96 1362s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:97 1362s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:98 1362s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:99 1362s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:100 1362s # Starting thread pool processing 1362s ok 5 /threadpool/sort 1362s ok 6 /threadpool/stop-unused-multiple 1362s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1362s # Pool idle thread count: 0, unprocessed jobs: 47 1363s # Pool idle thread count: 0, unprocessed jobs: 0 1363s # Pool idle thread count: 0, unprocessed jobs: 0 1363s # Pool idle thread count: 10, unprocessed jobs: 0 1363s # Pool idle thread count: 10, unprocessed jobs: 0 1364s # Pool idle thread count: 10, unprocessed jobs: 0 1364s # Pool idle thread count: 10, unprocessed jobs: 0 1364s # Pool idle thread count: 10, unprocessed jobs: 0 1364s # Pool idle thread count: 10, unprocessed jobs: 0 1365s # Pool idle thread count: 10, unprocessed jobs: 0 1365s # Pool idle thread count: 10, unprocessed jobs: 0 1365s # Pool idle thread count: 10, unprocessed jobs: 0 1365s # Pool idle thread count: 10, unprocessed jobs: 0 1366s # Pool idle thread count: 10, unprocessed jobs: 0 1366s # Pool idle thread count: 10, unprocessed jobs: 0 1366s Executing: glib/thread-pool-slow.test 1366s # Pool idle thread count: 10, unprocessed jobs: 0 1366s # Pool idle thread count: 10, unprocessed jobs: 0 1367s # Pool idle thread count: 10, unprocessed jobs: 0 1367s # Pool idle thread count: 10, unprocessed jobs: 0 1367s # Pool idle thread count: 10, unprocessed jobs: 0 1367s # Pool idle thread count: 10, unprocessed jobs: 0 1368s # Pool idle thread count: 10, unprocessed jobs: 0 1368s # Pool idle thread count: 10, unprocessed jobs: 0 1368s # Pool idle thread count: 10, unprocessed jobs: 0 1368s # Pool idle thread count: 10, unprocessed jobs: 0 1369s # Pool idle thread count: 10, unprocessed jobs: 0 1369s # Pool idle thread count: 10, unprocessed jobs: 0 1369s # Pool idle thread count: 10, unprocessed jobs: 0 1369s # Pool idle thread count: 10, unprocessed jobs: 0 1370s # Pool idle thread count: 10, unprocessed jobs: 0 1370s # Pool idle thread count: 10, unprocessed jobs: 0 1370s # Pool idle thread count: 10, unprocessed jobs: 0 1370s # Pool idle thread count: 10, unprocessed jobs: 0 1371s # Pool idle thread count: 10, unprocessed jobs: 0 1371s # Pool idle thread count: 10, unprocessed jobs: 0 1371s Executing: glib/thread-pool-slow.test 1371s # Pool idle thread count: 10, unprocessed jobs: 2 1371s # Pool idle thread count: 10, unprocessed jobs: 2 1371s # Pool idle thread count: 8, unprocessed jobs: 0 1371s # Pool idle thread count: 8, unprocessed jobs: 0 1372s # Pool idle thread count: 10, unprocessed jobs: 0 1372s # Pool idle thread count: 10, unprocessed jobs: 0 1372s # Pool idle thread count: 10, unprocessed jobs: 0 1372s # Pool idle thread count: 10, unprocessed jobs: 0 1373s # Pool idle thread count: 10, unprocessed jobs: 0 1373s # Pool idle thread count: 10, unprocessed jobs: 0 1373s # Pool idle thread count: 2, unprocessed jobs: 0 1373s # Pool idle thread count: 2, unprocessed jobs: 0 1374s # Pool idle thread count: 2, unprocessed jobs: 0 1374s # Pool idle thread count: 2, unprocessed jobs: 0 1374s # Pool idle thread count: 2, unprocessed jobs: 0 1374s # Pool idle thread count: 2, unprocessed jobs: 0 1375s # Pool idle thread count: 2, unprocessed jobs: 0 1375s # Pool idle thread count: 2, unprocessed jobs: 0 1375s # Pool idle thread count: 2, unprocessed jobs: 0 1375s # Pool idle thread count: 2, unprocessed jobs: 0 1376s # Pool idle thread count: 2, unprocessed jobs: 0 1376s # Pool idle thread count: 2, unprocessed jobs: 0 1376s Executing: glib/thread-pool-slow.test 1376s # Pool idle thread count: 2, unprocessed jobs: 0 1376s # Pool idle thread count: 2, unprocessed jobs: 0 1377s # Pool idle thread count: 2, unprocessed jobs: 0 1377s # Pool idle thread count: 2, unprocessed jobs: 0 1377s # Pool idle thread count: 2, unprocessed jobs: 0 1377s # Pool idle thread count: 2, unprocessed jobs: 0 1378s # Pool idle thread count: 2, unprocessed jobs: 0 1378s # Pool idle thread count: 2, unprocessed jobs: 0 1378s # Pool idle thread count: 2, unprocessed jobs: 0 1378s # Pool idle thread count: 2, unprocessed jobs: 0 1379s # Pool idle thread count: 2, unprocessed jobs: 0 1379s # Pool idle thread count: 2, unprocessed jobs: 0 1379s # Pool idle thread count: 2, unprocessed jobs: 0 1379s # Pool idle thread count: 2, unprocessed jobs: 0 1380s # Pool idle thread count: 2, unprocessed jobs: 0 1380s # Pool idle thread count: 2, unprocessed jobs: 0 1380s # Pool idle thread count: 2, unprocessed jobs: 0 1380s # Pool idle thread count: 2, unprocessed jobs: 0 1381s # Pool idle thread count: 2, unprocessed jobs: 0 1381s # Pool idle thread count: 2, unprocessed jobs: 0 1381s Executing: glib/thread-pool-slow.test 1381s # Pool idle thread count: 2, unprocessed jobs: 0 1381s # Pool idle thread count: 2, unprocessed jobs: 0 1382s ok 7 /threadpool/idle-time 1382s # slow test /threadpool/idle-time executed in 19.53 secs 1382s # End of threadpool tests 1382s PASS: glib/thread-pool-slow.test 1382s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=3504 1382s autopkgtest [17:48:05]: test thread-pool-slow: -----------------------] 1383s thread-pool-slow PASS 1383s autopkgtest [17:48:06]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1383s autopkgtest [17:48:06]: test threadtests: preparing testbed 1383s Reading package lists... 1383s Building dependency tree... 1383s Reading state information... 1384s Solving dependencies... 1384s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1385s autopkgtest [17:48:08]: test threadtests: [----------------------- 1385s Running test: glib/threadtests.test 1385s TAP version 14 1385s # random seed: R02Se676343a14f1301a9424229c64e53387 1385s 1..5 1385s # Start of GObject tests 1385s ok 1 /GObject/threaded-object-init 1386s ok 2 /GObject/threaded-weak-ref 1386s # slow test /GObject/threaded-weak-ref executed in 0.69 secs 1386s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1386s # /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 1386s ok 3 /GObject/threaded-toggle-notify 1386s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1386s # Start of threaded-weak-ref tests 1386s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1386s # /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. 1386s ok 5 /GObject/threaded-weak-ref/on-finalization 1386s # End of threaded-weak-ref tests 1386s # End of GObject tests 1386s PASS: glib/threadtests.test 1386s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.4s; maxrss=3416 1386s autopkgtest [17:48:09]: test threadtests: -----------------------] 1387s autopkgtest [17:48:10]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1387s threadtests PASS 1387s autopkgtest [17:48:10]: test timeout: preparing testbed 1387s Reading package lists... 1388s Building dependency tree... 1388s Reading state information... 1388s Solving dependencies... 1388s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1389s autopkgtest [17:48:12]: test timeout: [----------------------- 1389s Running test: glib/timeout.test 1389s TAP version 14 1389s # random seed: R02S336b8be6df86cd6f219bafd0780b68d9 1389s 1..5 1389s # Start of timeout tests 1389s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1391s ok 1 /timeout/seconds 1391s # slow test /timeout/seconds executed in 2.10 secs 1393s ok 2 /timeout/seconds-once 1393s # slow test /timeout/seconds-once executed in 2.10 secs 1393s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1394s Executing: glib/timeout.test 1396s ok 3 /timeout/weeks-overflow 1396s # slow test /timeout/weeks-overflow executed in 2.10 secs 1396s ok 4 /timeout/far-future-ready-time 1399s Executing: glib/timeout.test 1404s Executing: glib/timeout.test 1406s ok 5 /timeout/rounding 1406s # slow test /timeout/rounding executed in 10.62 secs 1406s # End of timeout tests 1406s PASS: glib/timeout.test 1406s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2848 1407s autopkgtest [17:48:30]: test timeout: -----------------------] 1407s timeout PASS 1407s autopkgtest [17:48:30]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1407s autopkgtest [17:48:30]: test timer: preparing testbed 1408s Reading package lists... 1408s Building dependency tree... 1408s Reading state information... 1408s Solving dependencies... 1408s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1409s autopkgtest [17:48:32]: test timer: [----------------------- 1409s Running test: glib/timer.test 1409s TAP version 14 1409s # random seed: R02S2244186e9529a2d09c9bf9ee3a9289fe 1409s 1..10 1409s # Start of timer tests 1409s ok 1 /timer/basic 1409s ok 2 /timer/stop 1409s ok 3 /timer/continue 1409s ok 4 /timer/reset 1409s ok 5 /timer/is_active 1409s # End of timer tests 1409s # Start of timeval tests 1409s ok 6 /timeval/add 1409s ok 7 /timeval/from-iso8601 1409s ok 8 /timeval/to-iso8601 1409s # Start of to-iso8601 tests 1409s ok 9 /timeval/to-iso8601/overflow 1409s # End of to-iso8601 tests 1409s # End of timeval tests 1409s # Start of usleep tests 1409s ok 10 /usleep/with-zero-wait 1409s # End of usleep tests 1409s PASS: glib/timer.test 1409s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2864 1410s autopkgtest [17:48:33]: test timer: -----------------------] 1410s autopkgtest [17:48:33]: test timer: - - - - - - - - - - results - - - - - - - - - - 1410s timer PASS 1411s autopkgtest [17:48:34]: test 1065022-futureproofing: preparing testbed 1431s Creating nova instance adt-resolute-arm64-glib2.0-20251018-172503-juju-7f2275-prod-proposed-migration-environment-20-58f5bebf-a68f-4e7a-be19-0805f6f8df6c from image adt/ubuntu-resolute-arm64-server-20251018.img (UUID f7a49384-4e4d-4350-9a26-1f59236f89dd)... 1492s autopkgtest [17:49:55]: testbed dpkg architecture: arm64 1492s autopkgtest [17:49:55]: testbed apt version: 3.1.6ubuntu2 1493s autopkgtest [17:49:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1493s autopkgtest [17:49:56]: testbed release detected to be: resolute 1494s autopkgtest [17:49:57]: updating testbed package index (apt update) 1494s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 1495s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1495s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1495s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1495s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [15.4 kB] 1495s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [345 kB] 1495s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 1495s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [28.4 kB] 1495s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [81.1 kB] 1495s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [43.8 kB] 1495s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [223 kB] 1495s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [5672 B] 1495s Fetched 831 kB in 1s (782 kB/s) 1496s Reading package lists... 1497s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 1497s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1497s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1497s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1499s Reading package lists... 1499s Reading package lists... 1499s Building dependency tree... 1499s Reading state information... 1499s Calculating upgrade... 1500s The following packages will be upgraded: 1500s apt flash-kernel gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 1500s libpython3-stdlib lto-disabled-list python3 python3-minimal 1500s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1500s Need to get 2671 kB of archives. 1500s After this operation, 66.6 kB of additional disk space will be used. 1500s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 1500s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 1500s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 1500s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libapt-pkg7.0 arm64 3.1.8ubuntu1 [1055 kB] 1500s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 apt arm64 3.1.8ubuntu1 [1373 kB] 1501s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libgirepository-1.0-1 arm64 1.86.0-6 [84.5 kB] 1501s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-girepository-2.0 arm64 1.86.0-6 [25.3 kB] 1501s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 flash-kernel arm64 3.109ubuntu7 [58.8 kB] 1501s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 lto-disabled-list all 71 [12.5 kB] 1501s dpkg-preconfigure: unable to re-open stdin: No such file or directory 1501s Fetched 2671 kB in 1s (2838 kB/s) 1501s (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 ... 83359 files and directories currently installed.) 1501s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 1502s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 1502s Setting up python3-minimal (3.13.7-2) ... 1502s (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 ... 83359 files and directories currently installed.) 1502s Preparing to unpack .../0-python3_3.13.7-2_arm64.deb ... 1502s running python pre-rtupdate hooks for python3.13... 1502s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 1502s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_arm64.deb ... 1502s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 1502s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_arm64.deb ... 1502s Unpacking libapt-pkg7.0:arm64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 1503s Preparing to unpack .../3-apt_3.1.8ubuntu1_arm64.deb ... 1503s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 1503s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_arm64.deb ... 1503s Unpacking libgirepository-1.0-1:arm64 (1.86.0-6) over (1.84.0-1) ... 1503s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_arm64.deb ... 1503s Unpacking gir1.2-girepository-2.0:arm64 (1.86.0-6) over (1.84.0-1) ... 1503s Preparing to unpack .../6-flash-kernel_3.109ubuntu7_arm64.deb ... 1503s Unpacking flash-kernel (3.109ubuntu7) over (3.109ubuntu6) ... 1503s Preparing to unpack .../7-lto-disabled-list_71_all.deb ... 1503s Unpacking lto-disabled-list (71) over (69) ... 1503s Setting up lto-disabled-list (71) ... 1503s Setting up libgirepository-1.0-1:arm64 (1.86.0-6) ... 1503s Setting up libapt-pkg7.0:arm64 (3.1.8ubuntu1) ... 1503s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 1504s Setting up apt (3.1.8ubuntu1) ... 1504s Setting up python3 (3.13.7-2) ... 1504s running python rtupdate hooks for python3.13... 1504s running python post-rtupdate hooks for python3.13... 1504s Setting up gir1.2-girepository-2.0:arm64 (1.86.0-6) ... 1505s Setting up flash-kernel (3.109ubuntu7) ... 1505s flash-kernel: deferring update (trigger activated) 1505s Processing triggers for libc-bin (2.42-0ubuntu3) ... 1505s Processing triggers for man-db (2.13.1-1) ... 1507s Processing triggers for initramfs-tools (0.150ubuntu3) ... 1507s update-initramfs: Generating /boot/initrd.img-6.17.0-5-generic 1534s System running in EFI mode, skipping. 1534s Processing triggers for flash-kernel (3.109ubuntu7) ... 1535s System running in EFI mode, skipping. 1535s autopkgtest [17:50:38]: upgrading testbed (apt dist-upgrade and autopurge) 1536s Reading package lists... 1536s Building dependency tree... 1536s Reading state information... 1537s Calculating upgrade... 1537s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1537s Reading package lists... 1538s Building dependency tree... 1538s Reading state information... 1538s Solving dependencies... 1538s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1538s autopkgtest [17:50:41]: rebooting testbed after setup commands that affected boot 1568s Reading package lists... 1568s Building dependency tree... 1568s Reading state information... 1568s Solving dependencies... 1569s The following NEW packages will be installed: 1569s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1569s libdconf1 1569s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1569s Need to get 144 kB of archives. 1569s After this operation, 768 kB of additional disk space will be used. 1569s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libdconf1 arm64 0.40.0-5willsync1 [42.3 kB] 1569s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 dconf-service arm64 0.40.0-5willsync1 [28.8 kB] 1569s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 dconf-gsettings-backend arm64 0.40.0-5willsync1 [23.8 kB] 1569s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 dpkg-repack all 1.54 [11.2 kB] 1569s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 gsettings-desktop-schemas all 49.0-1ubuntu1 [38.1 kB] 1570s Fetched 144 kB in 0s (316 kB/s) 1570s Selecting previously unselected package libdconf1:arm64. 1570s (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 ... 83359 files and directories currently installed.) 1570s Preparing to unpack .../libdconf1_0.40.0-5willsync1_arm64.deb ... 1570s Unpacking libdconf1:arm64 (0.40.0-5willsync1) ... 1570s Selecting previously unselected package dconf-service. 1570s Preparing to unpack .../dconf-service_0.40.0-5willsync1_arm64.deb ... 1570s Unpacking dconf-service (0.40.0-5willsync1) ... 1570s Selecting previously unselected package dconf-gsettings-backend:arm64. 1570s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5willsync1_arm64.deb ... 1570s Unpacking dconf-gsettings-backend:arm64 (0.40.0-5willsync1) ... 1570s Selecting previously unselected package dpkg-repack. 1570s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1570s Unpacking dpkg-repack (1.54) ... 1570s Selecting previously unselected package gsettings-desktop-schemas. 1570s Preparing to unpack .../gsettings-desktop-schemas_49.0-1ubuntu1_all.deb ... 1570s Unpacking gsettings-desktop-schemas (49.0-1ubuntu1) ... 1570s Setting up dpkg-repack (1.54) ... 1570s Setting up libdconf1:arm64 (0.40.0-5willsync1) ... 1570s Setting up dconf-service (0.40.0-5willsync1) ... 1570s Setting up dconf-gsettings-backend:arm64 (0.40.0-5willsync1) ... 1570s Setting up gsettings-desktop-schemas (49.0-1ubuntu1) ... 1570s Processing triggers for man-db (2.13.1-1) ... 1571s Processing triggers for libglib2.0-0t64:arm64 (2.86.0-2) ... 1571s Processing triggers for libc-bin (2.42-0ubuntu3) ... 1575s autopkgtest [17:51:18]: test 1065022-futureproofing: [----------------------- 1575s + export DEBIAN_FRONTEND=noninteractive 1575s + n=0 1575s + failed=0 1575s + binary_package=libglib2.0-0t64 1575s + future_binary_package=libglib2.0-0xyz 1575s + pwd 1575s + srcdir=/tmp/autopkgtest.gF1VIw/build.kH3/src 1575s + mktemp -d 1575s + tmpdir=/tmp/tmp.wa36r76OWq 1575s + cd /tmp/tmp.wa36r76OWq 1575s + exec 1575s + [ -e /tmp/autopkgtest.gF1VIw/build.kH3/src/debian/tests/manual/local-1065022.sources ] 1575s + dpkg-query -W dpkg-repack 1575s dpkg-repack 1.54 1575s + dpkg-query -s libglib2.0-0t64 1575s Package: libglib2.0-0t64 1575s Status: install ok installed 1575s Priority: important 1575s Section: libs 1575s Installed-Size: 4798 1575s Maintainer: Ubuntu Developers 1575s Architecture: arm64 1575s Multi-Arch: same 1575s Source: glib2.0 1575s Version: 2.86.0-2 1575s Replaces: libglib2.0-0 (<< 2.80.0-7~) 1575s Provides: libgio-2.0-0 (= 2.86.0-2), libglib-2.0-0 (= 2.86.0-2), libglib2.0-0 (= 2.86.0-2), libgmodule-2.0-0 (= 2.86.0-2), libgobject-2.0-0 (= 2.86.0-2), libgthread-2.0-0 (= 2.86.0-2) 1575s 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) 1575s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1575s Suggests: low-memory-monitor 1575s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~) 1575s Description: GLib library of C routines 1575s GLib is a library containing many useful C routines for things such 1575s as trees, hashes, lists, and strings. It is a useful general-purpose 1575s C library used by projects such as GTK+, GIMP, and GNOME. 1575s . 1575s This package contains the shared libraries. 1575s Original-Maintainer: Debian GNOME Maintainers 1575s Homepage: https://gitlab.gnome.org/GNOME/glib 1575s + dpkg-query -W -f ${Version} libglib2.0-0t64 1575s + binary_version=2.86.0-2 1575s + dpkg-repack --generate libglib2.0-0t64 1575s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1576s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.0BxQhE for libglib2.0-0t64 1576s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.0BxQhE ." 1576s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.0BxQhE/DEBIAN/control 1576s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.0BxQhE/DEBIAN/control 1576s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.0BxQhE/DEBIAN/control 1576s + env binary_package=libglib2.0-0t64 binary_version=2.86.0-2 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.0BxQhE/DEBIAN/control 1576s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.0BxQhE libglib2.0-0xyz.deb 1576s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1577s + dpkg-deb --info libglib2.0-0xyz.deb 1577s new Debian package, version 2.0. 1577s size 1580698 bytes: control archive=25893 bytes. 1577s 1381 bytes, 24 lines control 1577s 1152 bytes, 14 lines md5sums 1577s 1296 bytes, 44 lines * postinst #!/bin/sh 1577s 2578 bytes, 87 lines * postrm #!/bin/sh 1577s 2408 bytes, 53 lines * preinst #!/bin/sh 1577s 466 bytes, 10 lines shlibs 1577s 172677 bytes, 4529 lines symbols 1577s 174 bytes, 4 lines triggers 1577s Package: libglib2.0-0xyz 1577s Source: glib2.0 1577s Version: 2.86.0-2 1577s Architecture: arm64 1577s Maintainer: Ubuntu Developers 1577s Installed-Size: 4798 1577s 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) 1577s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1577s Suggests: low-memory-monitor 1577s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~), libglib2.0-0t64 1577s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1577s Provides: libgio-2.0-0 (= 2.86.0-2), libglib-2.0-0 (= 2.86.0-2), libglib2.0-0 (= 2.86.0-2), libgmodule-2.0-0 (= 2.86.0-2), libgobject-2.0-0 (= 2.86.0-2), libgthread-2.0-0 (= 2.86.0-2), libglib2.0-0t64 (= 2.86.0-2) 1577s Section: libs 1577s Priority: important 1577s Multi-Arch: same 1577s Homepage: https://gitlab.gnome.org/GNOME/glib 1577s Description: GLib library of C routines 1577s GLib is a library containing many useful C routines for things such 1577s as trees, hashes, lists, and strings. It is a useful general-purpose 1577s C library used by projects such as GTK+, GIMP, and GNOME. 1577s . 1577s This package contains the shared libraries. 1577s . 1577s (Repackaged on Sat, 18 Oct 2025 17:51:18 +0000 by dpkg-repack.) 1577s + dpkg-deb --contents libglib2.0-0xyz.deb 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/lib/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/lib/aarch64-linux-gnu/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/lib/aarch64-linux-gnu/gio/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/lib/aarch64-linux-gnu/gio/modules/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/lib/aarch64-linux-gnu/glib-2.0/ 1577s -rwxr-xr-x root/root 67832 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/glib-2.0/gio-launch-desktop 1577s -rwxr-xr-x root/root 67832 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/glib-2.0/gio-querymodules 1577s -rwxr-xr-x root/root 67872 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/glib-2.0/glib-compile-schemas 1577s -rw-r--r-- root/root 2100808 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgio-2.0.so.0.8600.0 1577s -rw-r--r-- root/root 1445536 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.8600.0 1577s -rw-r--r-- root/root 67720 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0.8600.0 1577s -rw-r--r-- root/root 461096 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.8600.0 1577s -rw-r--r-- root/root 67680 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgthread-2.0.so.0.8600.0 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/doc/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/doc/libglib2.0-0t64/ 1577s -rw-r--r-- root/root 256698 2025-09-05 12:42 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 1577s -rw-r--r-- root/root 1703 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/README.Debian 1577s -rw-r--r-- root/root 3248 2025-09-05 12:42 ./usr/share/doc/libglib2.0-0t64/README.md 1577s -rw-r--r-- root/root 37088 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 1577s -rw-r--r-- root/root 55103 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/copyright 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/glib-2.0/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/glib-2.0/schemas/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/lintian/ 1577s drwxr-xr-x root/root 0 2025-10-18 17:51 ./usr/share/lintian/overrides/ 1577s -rw-r--r-- root/root 520 2025-09-12 02:01 ./usr/share/lintian/overrides/libglib2.0-0t64 1577s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.0 1577s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.0 1577s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.0 1577s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.0 1577s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/aarch64-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.0 1577s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 1577s Reading package lists... 1578s Building dependency tree... 1578s Reading state information... 1578s dconf-gsettings-backend is already the newest version (0.40.0-5willsync1). 1578s gsettings-desktop-schemas is already the newest version (49.0-1ubuntu1). 1578s Solving dependencies... 1578s The following additional packages will be installed: 1578s xdg-user-dirs 1578s Suggested packages: 1578s low-memory-monitor 1578s The following packages will be REMOVED: 1578s libglib2.0-0t64 1578s The following NEW packages will be installed: 1578s libglib2.0-0xyz xdg-user-dirs 1578s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 1578s Need to get 19.6 kB/1600 kB of archives. 1578s After this operation, 213 kB of additional disk space will be used. 1578s Get:1 /tmp/tmp.wa36r76OWq/libglib2.0-0xyz.deb libglib2.0-0xyz arm64 2.86.0-2 [1581 kB] 1578s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 xdg-user-dirs arm64 0.18-3 [19.6 kB] 1579s Fetched 19.6 kB in 0s (81.4 kB/s) 1579s dpkg: libglib2.0-0t64:arm64: dependency problems, but removing anyway as you requested: 1579s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 1579s python3-gi depends on libglib2.0-0t64 (>= 2.78.0). 1579s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 1579s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 1579s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0). 1579s libnetplan1:arm64 depends on libglib2.0-0t64 (>= 2.76.0). 1579s libgirepository-1.0-1:arm64 depends on libglib2.0-0t64 (>= 2.82.0). 1579s libdconf1:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 1579s gir1.2-glib-2.0:arm64 depends on libglib2.0-0t64 (= 2.86.0-2). 1579s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 1579s dconf-gsettings-backend:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 1579s 1579s (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 ... 83426 files and directories currently installed.) 1579s Removing libglib2.0-0t64:arm64 (2.86.0-2) ... 1579s Selecting previously unselected package libglib2.0-0xyz:arm64. 1579s (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 ... 83407 files and directories currently installed.) 1579s Preparing to unpack .../libglib2.0-0xyz.deb ... 1579s Unpacking libglib2.0-0xyz:arm64 (2.86.0-2) ... 1579s Selecting previously unselected package xdg-user-dirs. 1579s Preparing to unpack .../xdg-user-dirs_0.18-3_arm64.deb ... 1579s Unpacking xdg-user-dirs (0.18-3) ... 1579s Setting up xdg-user-dirs (0.18-3) ... 1580s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 1580s Setting up libglib2.0-0xyz:arm64 (2.86.0-2) ... 1580s Processing triggers for libc-bin (2.42-0ubuntu3) ... 1580s Processing triggers for man-db (2.13.1-1) ... 1580s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1580s + n=1 1580s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1580s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1580s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1580s + n=2 1580s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1580s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1580s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1580s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1580s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + n=3 1580s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + echo ok 3 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + assert testok 3 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s ok 4 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s ok 5 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s ok 6 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + n=4 1580s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + echo ok 4 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1580s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + n=5 1580s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + echo ok 5 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + n=6 1580s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + echo ok 6 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1580s + apt-get -y purge libglib2.0-0t64 1580s Reading package lists... 1580s Building dependency tree... 1580s Reading state information... 1581s Solving dependencies... 1581s The following packages will be REMOVED: 1581s libglib2.0-0t64* 1581s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1581s After this operation, 0 B of additional disk space will be used. 1581s (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 ... 83441 files and directories currently installed.) 1581s Purging configuration files for libglib2.0-0t64:arm64 (2.86.0-2) ... 1582s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1582s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1582s ok 9 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s ok 10 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s ok 11 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + assert testok 12 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1582s + n=7 1582s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1582s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1582s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1582s + n=8 1582s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1582s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1582s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + n=9 1582s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + echo ok 9 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + n=10 1582s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + echo ok 10 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1582s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + n=11 1582s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + echo ok 11 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + n=12 1582s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + echo ok 12 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1582s + apt-get -y purge libglib2.0-0xyz 1582s Reading package lists... 1582s Building dependency tree... 1582s Reading state information... 1582s Solving dependencies... 1582s The following additional packages will be installed: 1582s libglib2.0-0t64 1582s Suggested packages: 1582s low-memory-monitor 1582s The following packages will be REMOVED: 1582s libglib2.0-0xyz* 1582s The following NEW packages will be installed: 1582s libglib2.0-0t64 1583s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1583s Need to get 1581 kB of archives. 1583s After this operation, 0 B of additional disk space will be used. 1583s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-0t64 arm64 2.86.0-2 [1581 kB] 1584s Fetched 1581 kB in 1s (1901 kB/s) 1584s dpkg: libglib2.0-0xyz:arm64: dependency problems, but removing anyway as you requested: 1584s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s python3-gi depends on libglib2.0-0t64 (>= 2.78.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s libnetplan1:arm64 depends on libglib2.0-0t64 (>= 2.76.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s libgirepository-1.0-1:arm64 depends on libglib2.0-0t64 (>= 2.82.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s libdconf1:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s gir1.2-glib-2.0:arm64 depends on libglib2.0-0t64 (= 2.86.0-2); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s dconf-gsettings-backend:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 1584s Package libglib2.0-0t64 is not installed. 1584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 1584s 1584s (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 ... 83441 files and directories currently installed.) 1584s Removing libglib2.0-0xyz:arm64 (2.86.0-2) ... 1584s Selecting previously unselected package libglib2.0-0t64:arm64. 1584s (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 ... 83422 files and directories currently installed.) 1584s Preparing to unpack .../libglib2.0-0t64_2.86.0-2_arm64.deb ... 1584s Unpacking libglib2.0-0t64:arm64 (2.86.0-2) ... 1584s Setting up libglib2.0-0t64:arm64 (2.86.0-2) ... 1585s Processing triggers for libc-bin (2.42-0ubuntu3) ... 1585s (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 ... 83441 files and directories currently installed.) 1585s Purging configuration files for libglib2.0-0xyz:arm64 (2.86.0-2) ... 1585s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1585s + n=13 1585s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1585s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1585s + failed=1 1585s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1585s + n=14 1585s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1585s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1585s + failed=1 1585s + assert_not test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1585s + n=15 1585s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1585s + echo not ok 15 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1585s + failed=1 1585s + assert_not test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1585s + n=16 1585s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1585s + echo not ok 16 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1585s + failed=1 1585s + echo 1..16 1585s + exit 1 1585s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1585s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1585s not ok 15 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 1585s not ok 16 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 1585s 1..16 1585s autopkgtest [17:51:28]: test 1065022-futureproofing: -----------------------] 1586s 1065022-futureproofing FLAKY non-zero exit status 1 1586s autopkgtest [17:51:29]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1586s autopkgtest [17:51:29]: @@@@@@@@@@@@@@@@@@@@ summary 1586s build PASS (superficial) 1586s build-static PASS (superficial) 1586s girepository-tools PASS (superficial) 1586s libgio-2.0-dev-bin PASS (superficial) 1586s libglib2.0-dev PASS (superficial) 1586s installed-tests PASS 1586s closure-refcount PASS 1586s debugcontroller PASS 1586s gdbus-server-auth PASS 1586s gdbus-threading PASS 1586s gmenumodel PASS 1586s mainloop PASS 1586s memory-monitor-dbus PASS 1586s socket PASS 1586s testfilemonitor PASS 1586s thread-pool-slow PASS 1586s threadtests PASS 1586s timeout PASS 1586s timer PASS 1586s 1065022-futureproofing FLAKY non-zero exit status 1